diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2ab99253..d088c416 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,10 @@ jobs: build-linux: runs-on: ubuntu-latest + env: + # https://goreleaser.com/customization/docker_manifest/ + DOCKER_CLI_EXPERIMENTAL: "enabled" + steps: - name: Code checkout uses: actions/checkout@v2 diff --git a/.goreleaser/linux.yml b/.goreleaser/linux.yml index 5c801b1a..ab1a7bb9 100644 --- a/.goreleaser/linux.yml +++ b/.goreleaser/linux.yml @@ -81,6 +81,7 @@ dockers: - "--label=org.opencontainers.image.version={{.Version}}" - "--label=repository=https://github.com/stripe/stripe-cli" - "--label=homepage=https://stripe.com" + - "--platform=linux/amd64" - goos: linux goarch: arm64 ids: @@ -97,6 +98,17 @@ dockers: - "--label=org.opencontainers.image.version={{.Version}}" - "--label=repository=https://github.com/stripe/stripe-cli" - "--label=homepage=https://stripe.com" + - "--platform=linux/arm64" +docker_manifests: + - name_template: "stripe/stripe-cli:latest" + image_templates: + - "stripe/stripe-cli:latest-amd64" + - "stripe/stripe-cli:latest-arm64" + - name_template: "stripe/stripe-cli:{{ .Tag }}" + image_templates: + - "stripe/stripe-cli:{{ .Tag }}-amd64" + - "stripe/stripe-cli:{{ .Tag }}-arm64" + publishers: - name: deb ids: