Skip to content

Commit

Permalink
Add docker manifest (#1001)
Browse files Browse the repository at this point in the history
  • Loading branch information
gracegoo-stripe committed Nov 14, 2022
1 parent 8031001 commit 3b3ada5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 12 additions & 0 deletions .goreleaser/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 3b3ada5

Please sign in to comment.