File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change 5
5
tags :
6
6
- ' v*'
7
7
8
+ permissions :
9
+ contents : write
10
+
8
11
jobs :
9
12
release :
10
13
runs-on : ubuntu-latest
@@ -30,10 +33,19 @@ jobs:
30
33
31
34
- name : Login to Docker Hub
32
35
uses : docker/login-action@v1
36
+ id : configure-login-dockerhub
33
37
with :
34
38
username : ${{ secrets.DOCKER_USERNAME }}
35
39
password : ${{ secrets.DOCKER_PASSWORD }}
36
40
41
+ - name : Docker Login
42
+ uses : docker/login-action@v1
43
+ id : configure-login-ghcr
44
+ with :
45
+ registry : ghcr.io
46
+ username : ${{ github.repository_owner }}
47
+ password : ${{ secrets.GH_PAT }}
48
+
37
49
- name : Run GoReleaser
38
50
uses : goreleaser/goreleaser-action@v1
39
51
with :
Original file line number Diff line number Diff line change @@ -37,13 +37,15 @@ nfpms:
37
37
dockers :
38
38
- image_templates :
39
39
- docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-amd64
40
+ - ghcr.io/docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-amd64
40
41
goarch : amd64
41
42
dockerfile : Dockerfile
42
43
use : buildx
43
44
build_flag_templates :
44
45
- --platform=linux/amd64
45
46
- image_templates :
46
47
- docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-arm64
48
+ - ghcr.io/docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-arm64
47
49
goarch : arm64
48
50
dockerfile : Dockerfile
49
51
use : buildx
@@ -58,3 +60,11 @@ docker_manifests:
58
60
image_templates :
59
61
- docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-amd64
60
62
- docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-arm64
63
+ - name_template : ghcr.io/docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}
64
+ image_templates :
65
+ - ghcr.io/docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-amd64
66
+ - ghcr.io/docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-arm64
67
+ - name_template : ghcr.io/docplanner/github-flow-manager:latest
68
+ image_templates :
69
+ - ghcr.io/docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-amd64
70
+ - ghcr.io/docplanner/github-flow-manager:{{ trimprefix .Tag "v" }}-arm64
You can’t perform that action at this time.
0 commit comments