Skip to content

Commit

Permalink
ci: fixed goreleaser buildx config
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg committed Sep 29, 2021
1 parent d166a10 commit c1efca4
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ jobs:
with:
go-version: 1.17

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Docker login
uses: docker/login-action@v1
with:
Expand Down
28 changes: 23 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,40 @@ changelog:
dockers:
- image_templates:
- "itzg/rcon-cli:{{ .Version }}-amd64"
- "itzg/rcon-cli:latest"
binaries:
- rcon-cli
dockerfile: Dockerfile.release
use: buildx
goos: linux
goarch: amd64
build_flag_templates:
- "--platform=linux/amd64"
- image_templates:
- "itzg/rcon-cli:{{ .Version }}-arm64"
binaries:
- rcon-cli
dockerfile: Dockerfile.release
use: buildx
goos: linux
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64"
- image_templates:
- "itzg/rcon-cli:{{ .Version }}-armv7"
dockerfile: Dockerfile.release
use: buildx
goos: linux
goarch: arm
goarm: '7'
build_flag_templates:
- "--platform=linux/arm/v7"
docker_manifests:
- name_template: "itzg/rcon-cli:latest"
image_templates:
- "itzg/rcon-cli:{{ .Version }}-amd64"
- "itzg/rcon-cli:{{ .Version }}-arm64"
- "itzg/rcon-cli:{{ .Version }}-armv7"
- name_template: "itzg/rcon-cli:{{ .Version }}"
image_templates:
- "itzg/rcon-cli:{{ .Version }}-amd64"
- "itzg/rcon-cli:{{ .Version }}-arm64"
- "itzg/rcon-cli:{{ .Version }}-armv7"
scoop:
bucket:
owner: itzg
Expand Down
File renamed without changes.

0 comments on commit c1efca4

Please sign in to comment.