File tree Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Expand file tree Collapse file tree 2 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 66 release :
77 types : [published]
88
9+ env :
10+ CONTAINER_IMAGE : " ghcr.io/${{ github.repository }}"
11+
912jobs :
1013 context :
1114 runs-on : ubuntu-latest
1518 packages : write
1619
1720 steps :
21+ - name : downcase CONTAINER_IMAGE
22+ run : |
23+ echo "CONTAINER_IMAGE=${CONTAINER_IMAGE,,}" >> ${GITHUB_ENV}
24+
1825 - name : Set up Docker Buildx
1926 uses : docker/setup-buildx-action@v2
2027
@@ -31,14 +38,10 @@ jobs:
3138 github-token : ${{ secrets.GITHUB_TOKEN }}
3239 push : true
3340
34- registry : ghcr.io
35- organization : " ${{ github.event.repository.owner.login }}"
36- repository : " ${{ github.event.repository.name }}"
37-
3841 platforms : |
3942 linux/amd64
4043 linux/arm64
4144
4245 tags : |
43- latest
44- ${{ github.event.release.tag_name }}
46+ ${{ env.CONTAINER_IMAGE }}: latest
47+ ${{ env.CONTAINER_IMAGE }}:${{ github.event.release.tag_name }}
Original file line number Diff line number Diff line change 77 branches :
88 - ' develop'
99
10+ env :
11+ CONTAINER_IMAGE : " ghcr.io/${{ github.repository }}"
12+
1013jobs :
1114 context :
1215 runs-on : ubuntu-latest
1619 packages : write
1720
1821 steps :
22+ - name : downcase CONTAINER_IMAGE
23+ run : |
24+ echo "CONTAINER_IMAGE=${CONTAINER_IMAGE,,}" >> ${GITHUB_ENV}
25+
1926 - name : Set up Docker Buildx
2027 uses : docker/setup-buildx-action@v2
2128
@@ -32,14 +39,10 @@ jobs:
3239 github-token : ${{ secrets.GITHUB_TOKEN }}
3340 push : true
3441
35- registry : ghcr.io
36- organization : " ${{ github.event.repository.owner.login }}"
37- repository : " ${{ github.event.repository.name }}"
38-
3942 platforms : |
4043 linux/amd64
4144 linux/arm64
4245
4346 tags : |
44- develop
45- ${{ github.sha }}
47+ ${{ env.CONTAINER_IMAGE }}: develop
48+ ${{ env.CONTAINER_IMAGE }}:${{ github.sha }}
You can’t perform that action at this time.
0 commit comments