File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 build :
1111 runs-on : ubuntu-latest
12+
13+ permissions :
14+ actions : read
15+ contents : read
16+ packages : write
17+
1218 steps :
1319 - name : Checkout repository
1420 uses : actions/checkout@v3
1521
1622 - name : Generate tags
17- run : echo "IMG_TAG=${GITHUB_SHA::7}" >> $GITHUB_ENV
23+ run : |
24+ repo=${{ github.repository }};
25+ echo "IMG_TAG=ghcr.io/${repo,,}/5k-dedi:${GITHUB_SHA::7}" >> $GITHUB_ENV
1826
1927 - name : Set up Docker Buildx
2028 uses : docker/setup-buildx-action@v2
2735 password : ${{secrets.GITHUB_TOKEN}}
2836
2937 - name : Build Docker image
30- run : docker buildx build --push -t ghcr.io/${{ github.repository }}/5k-dedicated:${{ env.IMG_TAG }} .
38+ uses : docker/build-push-action@v2
39+ with :
40+ context : .
41+ push : true
42+ tags : ${{ env.IMG_TAG }}
You can’t perform that action at this time.
0 commit comments