File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88jobs :
99 build-and-push :
1010 runs-on : ubuntu-latest
11+
1112 permissions :
1213 contents : read
1314 packages : write
15+
1416 steps :
1517 - name : Checkout code
16- uses : actions/checkout@v2
18+ uses : actions/checkout@v4
1719
1820 - name : Extract Version from Dockerfile
1921 id : docker_meta
2022 run : |
2123 VERSION_LABEL=$(grep 'org.opencontainers.image.version' ./Dockerfile | cut -d '"' -f 2)
22- echo "::set-output name= VERSION:: $VERSION_LABEL"
24+ echo "VERSION= $VERSION_LABEL" >> $GITHUB_OUTPUT
2325
2426 - name : Set up Docker Buildx
25- uses : docker/setup-buildx-action@v1
27+ uses : docker/setup-buildx-action@v3
2628
2729 - name : Log in to GitHub Container Registry
28- uses : docker/login-action@v1
30+ uses : docker/login-action@v3
2931 with :
3032 registry : ghcr.io
3133 username : ${{ github.actor }}
3234 password : ${{ secrets.GITHUB_TOKEN }}
3335
3436 - name : Build and push Docker image
35- uses : docker/build-push-action@v2
37+ uses : docker/build-push-action@v5
3638 with :
3739 context : .
3840 file : ./Dockerfile
You can’t perform that action at this time.
0 commit comments