1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-11-18 19:04:07 +01:00

fix(ci): use buildx

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2021-01-04 14:44:56 -03:00
parent 971647d75e
commit cbacedfe7e
2 changed files with 8 additions and 2 deletions

@ -51,8 +51,12 @@ jobs:
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Allow arm64 builds
run: sudo docker run --privileged linuxkit/binfmt:v0.7
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Make Setup
run: |

@ -20,6 +20,7 @@ dockers:
- 'goreleaser/nfpm:{{ .Tag }}-amd64'
- 'ghcr.io/goreleaser/nfpm:{{ .Tag }}-amd64'
dockerfile: Dockerfile
use_buildx: true
binaries:
- nfpm
build_flag_templates:
@ -34,6 +35,7 @@ dockers:
- 'goreleaser/nfpm:{{ .Tag }}-arm64v8'
- 'ghcr.io/goreleaser/nfpm:{{ .Tag }}-arm64v8'
dockerfile: Dockerfile
use_buildx: true
binaries:
- nfpm
build_flag_templates: