Skip to content

Commit 0719080

Browse files
authored
Update docker-publish.yml
Updated version references for actions.
1 parent a8971ba commit 0719080

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/docker-publish.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ jobs:
2424
steps:
2525
# Get the repository's code
2626
- name: Checkout
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2828
# https://github.com/docker/setup-qemu-action
2929
- name: Set up QEMU
30-
uses: docker/setup-qemu-action@v1
30+
uses: docker/setup-qemu-action@v2
3131
# https://github.com/docker/setup-buildx-action
3232
- name: Set up Docker Buildx
3333
id: buildx
34-
uses: docker/setup-buildx-action@v1
34+
uses: docker/setup-buildx-action@v2
3535
# Github Container Registry
3636
# - name: Login to GHCR
3737
# if: github.event_name != 'pull_request'
38-
# uses: docker/login-action@v1
38+
# uses: docker/login-action@v2
3939
# with:
4040
# registry: ghcr.io
4141
# username: ${{ github.repository_owner }}
@@ -44,13 +44,13 @@ jobs:
4444
# Dockerhub
4545
- name: Login to Docker Hub
4646
if: github.event_name != 'pull_request'
47-
uses: docker/login-action@v1
47+
uses: docker/login-action@v2
4848
with:
4949
username: ${{ secrets.DOCKERHUB_USERNAME }}
5050
password: ${{ secrets.DOCKERHUB_TOKEN }}
5151
- name: Create Docker tags
5252
id: meta # you'll use this in the next step
53-
uses: docker/metadata-action@v3
53+
uses: docker/metadata-action@v4
5454
with:
5555
# list of Docker images to use as base name for tags
5656
images: |
@@ -65,10 +65,10 @@ jobs:
6565
type=semver,pattern={{major}}
6666
# type=sha
6767
- name: Build and push
68-
uses: docker/build-push-action@v2
68+
uses: docker/build-push-action@v4
6969
with:
7070
context: .
7171
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
7272
push: ${{ github.event_name != 'pull_request' }}
7373
tags: ${{ steps.meta.outputs.tags }}
74-
labels: ${{ steps.meta.outputs.labels }}
74+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)