From be9de772ca4bccf565086faf98a9ebe4d883e97f Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Wed, 10 Apr 2024 16:41:23 +0200 Subject: [PATCH] use qemu and buildx --- .github/workflows/release.yml | 3 +++ .goreleaser.yaml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8579af495..47c75eddb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,6 +31,9 @@ jobs: username: "${{ github.actor }}" password: "${{ secrets.GITHUB_TOKEN }}" + - name: Set up QEMU dependency + uses: docker/setup-qemu-action@v3 + - name: Run GoReleaser id: releaser uses: goreleaser/goreleaser-action@v4 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 3355212bd..e7c8f6eaf 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -50,6 +50,7 @@ archives: dockers: - id: arm64 goarch: arm64 + use: buildx image_templates: # Docker tags can't have "+" in them, so we replace it with "-" - 'ghcr.io/databricks/cli:{{replace .Version "+" "-"}}-arm64' @@ -62,6 +63,7 @@ dockers: - id: amd64 goarch: amd64 + use: buildx image_templates: # Docker tags can't have "+" in them, so we replace it with "-" - 'ghcr.io/databricks/cli:{{replace .Version "+" "-"}}-amd64'