Skip to content

Commit

Permalink
goreleaser: add dockerhub registry prefix and setup qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Nov 18, 2021
1 parent 65e7449 commit b8339d9
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 33 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ permissions:
jobs:
goreleaser:
runs-on: ubuntu-latest
env:
DOCKER_CLI_EXPERIMENTAL: enabled
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down Expand Up @@ -42,6 +44,9 @@ jobs:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
Expand Down
66 changes: 33 additions & 33 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ changelog:

dockers:
- image_templates:
- "charmcli/soft-serve:latest-amd64"
- "charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64"
- "charmcli/soft-serve:v{{ .Version }}-amd64"
- "docker.io/charmcli/soft-serve:latest-amd64"
- "docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64"
- "docker.io/charmcli/soft-serve:v{{ .Version }}-amd64"
- "ghcr.io/charmbracelet/soft-serve:latest-amd64"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-amd64"
Expand All @@ -59,9 +59,9 @@ dockers:
dockerfile: Dockerfile
use: buildx
- image_templates:
- "charmcli/soft-serve:latest-i386"
- "charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-i386"
- "charmcli/soft-serve:v{{ .Version }}-i386"
- "docker.io/charmcli/soft-serve:latest-i386"
- "docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-i386"
- "docker.io/charmcli/soft-serve:v{{ .Version }}-i386"
- "ghcr.io/charmbracelet/soft-serve:latest-i386"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-i386"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-i386"
Expand All @@ -80,9 +80,9 @@ dockers:
dockerfile: Dockerfile
use: buildx
- image_templates:
- "charmcli/soft-serve:latest-arm64"
- "charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64"
- "charmcli/soft-serve:v{{ .Version }}-arm64"
- "docker.io/charmcli/soft-serve:latest-arm64"
- "docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64"
- "docker.io/charmcli/soft-serve:v{{ .Version }}-arm64"
- "ghcr.io/charmbracelet/soft-serve:latest-arm64"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-arm64"
Expand All @@ -101,9 +101,9 @@ dockers:
dockerfile: Dockerfile
use: buildx
- image_templates:
- "charmcli/soft-serve:latest-armv6"
- "charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6"
- "charmcli/soft-serve:v{{ .Version }}-armv6"
- "docker.io/charmcli/soft-serve:latest-armv6"
- "docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6"
- "docker.io/charmcli/soft-serve:v{{ .Version }}-armv6"
- "ghcr.io/charmbracelet/soft-serve:latest-armv6"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-armv6"
Expand All @@ -123,9 +123,9 @@ dockers:
dockerfile: Dockerfile
use: buildx
- image_templates:
- "charmcli/soft-serve:latest-armv7"
- "charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7"
- "charmcli/soft-serve:v{{ .Version }}-armv7"
- "docker.io/charmcli/soft-serve:latest-armv7"
- "docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7"
- "docker.io/charmcli/soft-serve:v{{ .Version }}-armv7"
- "ghcr.io/charmbracelet/soft-serve:latest-armv7"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7"
- "ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-armv7"
Expand All @@ -146,41 +146,41 @@ dockers:
use: buildx

docker_manifests:
- name_template: charmcli/soft-serve:latest
- name_template: docker.io/charmcli/soft-serve:latest
image_templates:
- charmcli/soft-serve:latest-amd64
- charmcli/soft-serve:latest-arm64
- charmcli/soft-serve:latest-armv6
- charmcli/soft-serve:latest-armv7
- charmcli/soft-serve:latest-i386
- docker.io/charmcli/soft-serve:latest-amd64
- docker.io/charmcli/soft-serve:latest-arm64
- docker.io/charmcli/soft-serve:latest-armv6
- docker.io/charmcli/soft-serve:latest-armv7
- docker.io/charmcli/soft-serve:latest-i386
- name_template: ghcr.io/charmbracelet/soft-serve:latest
image_templates:
- ghcr.io/charmbracelet/soft-serve:latest-amd64
- ghcr.io/charmbracelet/soft-serve:latest-arm64
- ghcr.io/charmbracelet/soft-serve:latest-armv6
- ghcr.io/charmbracelet/soft-serve:latest-armv7
- ghcr.io/charmbracelet/soft-serve:latest-i386
- name_template: charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}
- name_template: docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}
image_templates:
- charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64
- charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64
- charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6
- charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7
- charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-i386
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7
- docker.io/charmcli/soft-serve:v{{ .Major }}.{{ .Minor }}-i386
- name_template: ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}
image_templates:
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-amd64
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-arm64
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-armv6
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-armv7
- ghcr.io/charmbracelet/soft-serve:v{{ .Major }}.{{ .Minor }}-i386
- name_template: charmcli/soft-serve:v{{ .Version }}
- name_template: docker.io/charmcli/soft-serve:v{{ .Version }}
image_templates:
- charmcli/soft-serve:v{{ .Version }}-amd64
- charmcli/soft-serve:v{{ .Version }}-arm64
- charmcli/soft-serve:v{{ .Version }}-armv6
- charmcli/soft-serve:v{{ .Version }}-armv7
- charmcli/soft-serve:v{{ .Version }}-i386
- docker.io/charmcli/soft-serve:v{{ .Version }}-amd64
- docker.io/charmcli/soft-serve:v{{ .Version }}-arm64
- docker.io/charmcli/soft-serve:v{{ .Version }}-armv6
- docker.io/charmcli/soft-serve:v{{ .Version }}-armv7
- docker.io/charmcli/soft-serve:v{{ .Version }}-i386
- name_template: ghcr.io/charmbracelet/soft-serve:v{{ .Version }}
image_templates:
- ghcr.io/charmbracelet/soft-serve:v{{ .Version }}-amd64
Expand Down

0 comments on commit b8339d9

Please sign in to comment.