Skip to content

Commit

Permalink
bump to go 1.16 and add arm64 support for m1 macs
Browse files Browse the repository at this point in the history
  • Loading branch information
princespaghetti committed Jan 12, 2022
1 parent 58ebe37 commit a749449
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ jobs:
run: git fetch --prune --unshallow
- uses: actions/setup-go@v2
with:
go-version: '^1.14.0'
go-version: '^1.16.0'
- name: Login to Docker Registry
run: |
docker login -u=princespaghetti -p="$DOCKER_PASSWORD"
env:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
- name: Release via goreleaser
uses: goreleaser/goreleaser-action@master
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 25 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,36 @@ archives:
format: zip
dockers:
-
binaries:
- actionhero
# GOOS of the built binary that should be used.
goos: linux
# GOARCH of the built binary that should be used.
goarch: amd64
use: buildx
dockerfile: Dockerfile
build_flag_templates:
- "--platform=linux/amd64"
image_templates:
- "docker.io/princespaghetti/actionhero:latest"
- "docker.io/princespaghetti/actionhero:{{ .Tag }}"
- "docker.io/princespaghetti/actionhero:{{ .Tag }}-amd64"
-
# GOOS of the built binary that should be used.
goos: linux
# GOARCH of the built binary that should be used.
goarch: arm64
build_flag_templates:
- "--platform=linux/arm64/v8"
use: buildx
dockerfile: Dockerfile
image_templates:
- "docker.io/princespaghetti/actionhero:{{ .Tag }}-arm64v8"
docker_manifests:
- name_template: docker.io/princespaghetti/actionhero:{{ .Tag }}
image_templates:
- docker.io/princespaghetti/actionhero:{{ .Tag }}-amd64
- docker.io/princespaghetti/actionhero:{{ .Tag }}-arm64v8
- name_template: docker.io/princespaghetti/actionhero:latest
image_templates:
- docker.io/princespaghetti/actionhero:{{ .Tag }}-amd64
- docker.io/princespaghetti/actionhero:{{ .Tag }}-arm64v8
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down

0 comments on commit a749449

Please sign in to comment.