Skip to content

Commit

Permalink
Merge pull request #195 from ecordell/multiarch
Browse files Browse the repository at this point in the history
Multiarch docker image release
  • Loading branch information
ecordell committed Oct 14, 2021
2 parents 79a9682 + b1eb53a commit 2ff33fc
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 19 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,17 @@ on:
permissions:
contents: "write"
jobs:
docker:
name: "Publish Container Image"
goreleaser:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
- uses: "docker/setup-qemu-action@v1"
- uses: "docker/setup-buildx-action@v1"
with:
driver-opts: "image=moby/buildkit:master"
fetch-depth: 0
- uses: "docker/login-action@v1"
with:
registry: "quay.io"
username: "${{ secrets.QUAYIO_USER }}"
password: "${{ secrets.QUAYIO_PASSWORD }}"
- uses: "battila7/get-version-action@v2"
id: "get_version"
- uses: "docker/build-push-action@v2"
with:
push: true
tags: |
quay.io/authzed/spicedb:latest
quay.io/authzed/spicedb:${{ steps.get_version.outputs.version }}
goreleaser:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v2"
with:
fetch-depth: 0
- uses: "actions/setup-go@v2"
with:
go-version: "^1.17"
Expand Down
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,34 @@ brews:
(bash_completion/"spicedb").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "bash")
(zsh_completion/"_spicedb").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "zsh")
(fish_completion/"spicedb.fish").write Utils.safe_popen_read("#{bin}/spicedb", "completion", "fish")
dockers:
- image_templates:
- &amd_image "quay.io/authzed/spicedb:{{ .Version }}-amd64"
ids: ["linux-amd64"]
dockerfile: &dockerfile "Dockerfile"
goos: "linux"
goarch: "amd64"
use: "buildx"
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- &arm_image "quay.io/authzed/spicedb:{{ .Version }}-arm64"
ids: ["linux-arm64"]
dockerfile: *dockerfile
goos: "linux"
goarch: "arm64"
use: "buildx"
build_flag_templates:
- "--platform=linux/arm64"
docker_manifests:
- name_template: "quay.io/authzed/spicedb:{{ .Version }}"
image_templates:
- *amd_image
- *arm_image
- name_template: "quay.io/authzed/spicedb:latest"
image_templates:
- *amd_image
- *arm_image
checksum:
name_template: "checksums.txt"
snapshot:
Expand Down

0 comments on commit 2ff33fc

Please sign in to comment.