File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,15 +13,16 @@ jobs:
1313 run : git fetch --prune --unshallow
1414 - uses : actions/setup-go@v2
1515 with :
16- go-version : ' ^1.14 .0'
16+ go-version : ' ^1.16 .0'
1717 - name : Login to Docker Registry
1818 run : |
1919 docker login -u=princespaghetti -p="$DOCKER_PASSWORD"
2020 env :
2121 DOCKER_PASSWORD : ${{ secrets.DOCKER_PASSWORD }}
2222 - name : Release via goreleaser
23- uses : goreleaser/goreleaser-action@master
23+ uses : goreleaser/goreleaser-action@v2
2424 with :
25+ version : latest
2526 args : release
2627 env :
2728 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -24,15 +24,36 @@ archives:
2424 format : zip
2525dockers :
2626 -
27- binaries :
28- - actionhero
2927 # GOOS of the built binary that should be used.
3028 goos : linux
3129 # GOARCH of the built binary that should be used.
3230 goarch : amd64
31+ use : buildx
32+ dockerfile : Dockerfile
33+ build_flag_templates :
34+ - " --platform=linux/amd64"
3335 image_templates :
34- - " docker.io/princespaghetti/actionhero:latest"
35- - " docker.io/princespaghetti/actionhero:{{ .Tag }}"
36+ - " docker.io/princespaghetti/actionhero:{{ .Tag }}-amd64"
37+ -
38+ # GOOS of the built binary that should be used.
39+ goos : linux
40+ # GOARCH of the built binary that should be used.
41+ goarch : arm64
42+ build_flag_templates :
43+ - " --platform=linux/arm64/v8"
44+ use : buildx
45+ dockerfile : Dockerfile
46+ image_templates :
47+ - " docker.io/princespaghetti/actionhero:{{ .Tag }}-arm64v8"
48+ docker_manifests :
49+ - name_template : docker.io/princespaghetti/actionhero:{{ .Tag }}
50+ image_templates :
51+ - docker.io/princespaghetti/actionhero:{{ .Tag }}-amd64
52+ - docker.io/princespaghetti/actionhero:{{ .Tag }}-arm64v8
53+ - name_template : docker.io/princespaghetti/actionhero:latest
54+ image_templates :
55+ - docker.io/princespaghetti/actionhero:{{ .Tag }}-amd64
56+ - docker.io/princespaghetti/actionhero:{{ .Tag }}-arm64v8
3657checksum :
3758 name_template : ' checksums.txt'
3859snapshot :
You can’t perform that action at this time.
0 commit comments