File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,20 @@ jobs:
1111 - name : Checkout
1212 uses : actions/checkout@v2
1313
14- - name : Log in to GitHub Docker Registry
14+ - name : Log in to GitHub Container Registry
1515 uses : docker/login-action@v1
1616 with :
17- registry : docker.pkg.github.com
17+ registry : ghcr.io
1818 username : ${{ github.actor }}
1919 password : ${{ secrets.GITHUB_TOKEN }}
2020
21+ - name : Get the tag name
22+ run : echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
23+
2124 - name : Build container image
2225 uses : docker/build-push-action@v2
2326 with :
2427 push : true
2528 tags : |
26- docker.pkg.github.com/${{ github.repository }}/image:${{ github.sha }}
29+ ghcr.io/${{ github.repository }}:${{ github.sha }}
30+ ghcr.io/${{ github.repository }}:${{ env.TAG }}
You can’t perform that action at this time.
0 commit comments