https://github.com/ldez/seihon
A simple tool to build and publish multi-arch images on the Docker Hub.
https://github.com/ldez/seihon
docker-hub golang multi-arch
Last synced: 3 months ago
JSON representation
A simple tool to build and publish multi-arch images on the Docker Hub.
- Host: GitHub
- URL: https://github.com/ldez/seihon
- Owner: ldez
- License: other
- Created: 2019-04-29T17:32:08.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-03-25T13:22:33.000Z (over 1 year ago)
- Last Synced: 2025-05-05T19:53:03.042Z (6 months ago)
- Topics: docker-hub, golang, multi-arch
- Language: Go
- Homepage:
- Size: 290 KB
- Stars: 21
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Seihon
[](https://github.com/ldez/seihon/releases/latest)
[](https://github.com/ldez/seihon/actions)
[](https://goreportcard.com/report/github.com/ldez/seihon)
A simple tool to publish multi-arch images on the Docker Hub.
If you appreciate this project:
[](https://github.com/sponsors/ldez)

## Usage
- [seihon](docs/seihon.md)
- [seihon publish](docs/seihon_publish.md)
## Installation
### Download / CI Integration
```bash
curl -sfL https://raw.githubusercontent.com/ldez/seihon/master/godownloader.sh | bash -s -- -b $GOPATH/bin v0.5.1
```
### From a package manager
- [ArchLinux (AUR)](https://aur.archlinux.org/packages/seihon/):
```bash
yay -S seihon
```
- [Homebrew Taps](https://github.com/ldez/homebrew-tap)
```bash
brew tap ldez/tap
brew update
brew install seihon
```
### From Binaries
You can use pre-compiled binaries:
* To get the binary just download the latest release for your OS/Arch from [the releases page](https://github.com/ldez/seihon/releases/)
* Unzip the archive.
* Add `seihon` in your `PATH`.
## Tips
- GitHub Actions:
```yaml
name: Example
# ...
jobs:
main:
# ...
env:
# ...
SEIHON_VERSION: v0.7.1
steps:
# ...
# Install Docker image multi-arch builder
- name: Install Seihon ${{ env.SEIHON_VERSION }}
#if: startsWith(github.ref, 'refs/tags/v')
run: |
curl -sSfL https://raw.githubusercontent.com/ldez/seihon/master/godownloader.sh | sh -s -- -b $(go env GOPATH)/bin ${SEIHON_VERSION}
seihon --version
- name: Publish Docker Images (Seihon)
#if: startsWith(github.ref, 'refs/tags/v')
run: make publish-images
```
- Travis CI:
```yaml
before_deploy:
# Install Docker image multi-arch builder
- curl -sfL https://raw.githubusercontent.com/ldez/seihon/master/godownloader.sh | bash -s -- -b $(go env GOPATH)/bin ${SEIHON_VERSION}
- seihon --version
# Add QEMU only for some specific cases.
- docker run --rm --privileged hypriot/qemu-register
deploy:
- provider: script
skip_cleanup: true
script: seihon publish
on:
tags: true
```