@@ -2,7 +2,7 @@ name: docker-3.0
22
33on :
44 push :
5- branches :
5+ branches :
66 - 3.0
77 workflow_dispatch :
88 schedule :
@@ -19,36 +19,36 @@ jobs:
1919
2020 steps :
2121 - name : Source checkout
22- uses : actions/checkout@v2.3.4
23-
22+ uses : actions/checkout@v3
23+
2424 - name : Setup QEMU
2525 id : qemu
26- uses : docker/setup-qemu-action@v1.2 .0
27-
26+ uses : docker/setup-qemu-action@v2.1 .0
27+
2828 - name : Setup Buildx
2929 id : buildx
30- uses : docker/setup-buildx-action@v1
30+ uses : docker/setup-buildx-action@v2
3131
3232 - name : Set Docker metadata
3333 id : docker_meta
34- uses : docker/metadata-action@v3
34+ uses : docker/metadata-action@v4
3535 with :
3636 images : ${{ github.repository }}
3737 labels : |
3838 org.opencontainers.image.version=${{ env.BUILD_VERSION }}
3939 org.opencontainers.image.revision=${{ github.sha }}
4040 org.opencontainers.image.title=${{ github.repository }}
41-
41+
4242 - name : GitHub login
4343 if : ${{ github.event_name != 'pull_request' }}
44- uses : docker/login-action@v1.10 .0
44+ uses : docker/login-action@v2.1 .0
4545 with :
4646 registry : ghcr.io
4747 username : ${{ github.actor }}
4848 password : ${{ secrets.GITHUB_TOKEN }}
4949
5050 - name : Build and push
51- uses : docker/build-push-action@v2.6.1
51+ uses : docker/build-push-action@v3.2.0
5252 with :
5353 push : ${{ github.event_name != 'pull_request' }}
5454 context : .
6060 labels : ${{ steps.docker_meta.outputs.labels }}
6161 tags : |
6262 ghcr.io/${{ github.repository }}:${{ env.BUILD_VERSION }}
63+ ghcr.io/${{ github.repository }}:latest
0 commit comments