File tree 3 files changed +16
-3
lines changed
3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 21
21
runs-on : ubuntu-latest
22
22
if : github.actor != 'dependabot[bot]' # skip on dependabot because it's not allowed to access secrets
23
23
permissions :
24
- contents : read
24
+ packages : write
25
25
outputs :
26
26
app-version : ${{ steps.meta.outputs.version }}
27
27
steps :
32
32
id : meta
33
33
uses : docker/metadata-action@v5
34
34
with :
35
- images : capcom6/${{ inputs.app-name }}
35
+ images : |
36
+ capcom6/${{ inputs.app-name }}
37
+ ghcr.io/${{ github.repository }}
36
38
tags : |
37
39
type=ref,event=branch
38
40
type=ref,event=pr
@@ -41,11 +43,18 @@ jobs:
41
43
type=semver,pattern={{major}}
42
44
43
45
- name : Log into Docker Hub
44
- uses : docker/login-action@v2
46
+ uses : docker/login-action@v3
45
47
with :
46
48
username : ${{ secrets.username }}
47
49
password : ${{ secrets.password }}
48
50
51
+ - name : Login to Container registry
52
+ uses : docker/login-action@v3
53
+ with :
54
+ registry : ghcr.io
55
+ username : ${{ github.actor }}
56
+ password : ${{ secrets.GITHUB_TOKEN }}
57
+
49
58
- name : Set APP_VERSION env
50
59
run : echo APP_VERSION=$(echo ${GITHUB_REF} | rev | cut -d'/' -f 1 | rev ) >> ${GITHUB_ENV}
51
60
- name : Set APP_RELEASE env
Original file line number Diff line number Diff line change 52
52
53
53
build :
54
54
name : Build
55
+ permissions :
56
+ packages : write
55
57
needs :
56
58
- test
57
59
- e2e
Original file line number Diff line number Diff line change 11
11
jobs :
12
12
build :
13
13
name : Build
14
+ permissions :
15
+ packages : write
14
16
uses : ./.github/workflows/docker-build.yml
15
17
with :
16
18
app-name : sms-gateway
You can’t perform that action at this time.
0 commit comments