File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed
Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 55 tags :
66 - ' v*.*.*'
77
8+ env :
9+ REGISTRY : ghcr.io
10+ IMAGE_NAME : ${{ github.repository }}
11+
812jobs :
9- docker :
13+ build-and-push-image :
1014 runs-on : ubuntu-latest
15+
16+ permissions :
17+ contents : read
18+ packages : write
19+
1120 steps :
1221 -
1322 name : Checkout
3039 with :
3140 # list of Docker images to use as base name for tags
3241 images : |
33- ${{ secrets.DOCKERHUB_USERNAME }}/${{ github.event.repository.name }}
42+ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3443 # generate Docker tags based on the following events/attributes
3544 tags : |
3645 type=semver,pattern={{version}}
4756 name : Login to DockerHub
4857 uses : docker/login-action@v3
4958 with :
50- username : ${{ secrets.DOCKERHUB_USERNAME }}
51- password : ${{ secrets.DOCKERHUB_TOKEN }}
59+ registry : ${{ env.REGISTRY }}
60+ username : ${{ github.actor }}
61+ password : ${{ secrets.GITHUB_TOKEN }}
5262 -
5363 name : Build and push
5464 id : docker_build
You can’t perform that action at this time.
0 commit comments