File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 12
12
env :
13
13
IMAGE_NAME : ${{ github.repository }}
14
14
DOCKERHUB_USERNAME : c4illin
15
- GHCR_USERNAME : c4illin
16
15
17
16
concurrency :
18
17
group : ${{ github.workflow }}-${{ github.ref }}
19
18
cancel-in-progress : true
20
19
20
+ permissions :
21
+ contents : write
22
+ packages : write
23
+
21
24
jobs :
22
25
# The build job builds the Docker image for each platform specified in the matrix.
23
26
build :
33
36
packages : write
34
37
attestations : write
35
38
checks : write
36
- actions : read
39
+ actions : write
37
40
38
41
runs-on : ${{ matrix.platform == 'linux/amd64' && 'ubuntu-24.04' || matrix.platform == 'linux/arm64' && 'ubuntu-24.04-arm' }}
39
42
73
76
uses : docker/login-action@v3
74
77
with :
75
78
registry : ghcr.io
76
- username : ${{ env.GHCR_USERNAME }}
77
- password : ${{ secrets.GHCR_TOKEN }}
79
+ username : ${{ github.actor }}
80
+ password : ${{ secrets.GITHUB_TOKEN }}
78
81
79
82
- name : Build and push by digest
80
83
id : build
@@ -142,8 +145,8 @@ jobs:
142
145
uses : docker/login-action@v3
143
146
with :
144
147
registry : ghcr.io
145
- username : ${{ env.GHCR_USERNAME }}
146
- password : ${{ secrets.GHCR_TOKEN }}
148
+ username : ${{ github.actor }}
149
+ password : ${{ secrets.GITHUB_TOKEN }}
147
150
148
151
- name : Login to Docker Hub
149
152
uses : docker/login-action@v3
You can’t perform that action at this time.
0 commit comments