File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 10
10
11
11
env :
12
12
REGISTRY : ghcr.io
13
- IMAGE_NAME : ${{ github.repository }}
13
+ IMAGE_NAME : ${{ github.repository_owner | lower }}/${{ github.event. repository.name | lower }}
14
14
15
15
jobs :
16
16
build-and-push :
Original file line number Diff line number Diff line change 16
16
- minor
17
17
- major
18
18
19
+ env :
20
+ REGISTRY : ghcr.io
21
+ IMAGE_NAME : ${{ github.repository_owner | lower }}/${{ github.event.repository.name | lower }}
22
+
19
23
jobs :
20
24
release :
21
25
runs-on : ubuntu-latest
65
69
- name : GHCR Login
66
70
uses : docker/login-action@v2
67
71
with :
68
- registry : ghcr.io
72
+ registry : ${{ env.REGISTRY }}
69
73
username : ${{ github.actor }}
70
74
password : ${{ secrets.GITHUB_TOKEN }}
71
75
75
79
context : .
76
80
push : true
77
81
tags : |
78
- ghcr.io /${{ github.repository }}:${{ steps.version.outputs.VERSION }}
79
- ghcr.io /${{ github.repository }}:latest
82
+ ${{ env.REGISTRY }} /${{ env.IMAGE_NAME }}:${{ steps.version.outputs.VERSION }}
83
+ ${{ env.REGISTRY }} /${{ env.IMAGE_NAME }}:latest
80
84
81
85
- name : Erstelle und pushe Git-Tag
82
86
run : |
You can’t perform that action at this time.
0 commit comments