File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed
Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -11,20 +11,24 @@ jobs:
1111 runs-on : ubuntu-latest
1212 steps :
1313 - name : Checkout code
14- uses : actions/checkout@v2
14+ uses : actions/checkout@v3
1515
1616 - name : Set up Docker Buildx
17- uses : docker/setup-buildx-action@v1
17+ uses : docker/setup-buildx-action@v2
18+
19+ - name : Convert repository name to lowercase
20+ run : |
21+ echo "REPO_LOWER=${GITHUB_REPOSITORY,,}" >> $GITHUB_ENV
1822
1923 - name : Login to GitHub Container Registry
20- uses : docker/login-action@v1
24+ uses : docker/login-action@v2
2125 with :
2226 registry : ghcr.io
2327 username : ${{ github.actor }}
2428 password : ${{ secrets.GITHUB_TOKEN }}
2529
2630 - name : Build and push
27- uses : docker/build-push-action@v2
31+ uses : docker/build-push-action@v4
2832 with :
2933 context : .
3034 push : true
3337 PORT=${{ secrets.PORT || '8000' }}
3438 RELOAD=${{ secrets.RELOAD || 'false' }}
3539 tags : |
36- ghcr.io/${{ github.repository }}:latest
37- ghcr.io/${{ github.repository }}:${{ github.sha }}
40+ ghcr.io/${{ env.REPO_LOWER }}:latest
41+ ghcr.io/${{ env.REPO_LOWER }}:${{ github.sha }}
3842 labels : |
3943 org.opencontainers.image.source=${{ github.event.repository.html_url }}
4044 org.opencontainers.image.revision=${{ github.sha }}
You can’t perform that action at this time.
0 commit comments