@@ -24,18 +24,18 @@ jobs:
24
24
steps :
25
25
# Get the repository's code
26
26
- name : Checkout
27
- uses : actions/checkout@v2
27
+ uses : actions/checkout@v3
28
28
# https://github.com/docker/setup-qemu-action
29
29
- name : Set up QEMU
30
- uses : docker/setup-qemu-action@v1
30
+ uses : docker/setup-qemu-action@v2
31
31
# https://github.com/docker/setup-buildx-action
32
32
- name : Set up Docker Buildx
33
33
id : buildx
34
- uses : docker/setup-buildx-action@v1
34
+ uses : docker/setup-buildx-action@v2
35
35
# Github Container Registry
36
36
# - name: Login to GHCR
37
37
# if: github.event_name != 'pull_request'
38
- # uses: docker/login-action@v1
38
+ # uses: docker/login-action@v2
39
39
# with:
40
40
# registry: ghcr.io
41
41
# username: ${{ github.repository_owner }}
@@ -44,13 +44,13 @@ jobs:
44
44
# Dockerhub
45
45
- name : Login to Docker Hub
46
46
if : github.event_name != 'pull_request'
47
- uses : docker/login-action@v1
47
+ uses : docker/login-action@v2
48
48
with :
49
49
username : ${{ secrets.DOCKERHUB_USERNAME }}
50
50
password : ${{ secrets.DOCKERHUB_TOKEN }}
51
51
- name : Create Docker tags
52
52
id : meta # you'll use this in the next step
53
- uses : docker/metadata-action@v3
53
+ uses : docker/metadata-action@v4
54
54
with :
55
55
# list of Docker images to use as base name for tags
56
56
images : |
@@ -65,10 +65,10 @@ jobs:
65
65
type=semver,pattern={{major}}
66
66
# type=sha
67
67
- name : Build and push
68
- uses : docker/build-push-action@v2
68
+ uses : docker/build-push-action@v4
69
69
with :
70
70
context : .
71
71
platforms : linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8
72
72
push : ${{ github.event_name != 'pull_request' }}
73
73
tags : ${{ steps.meta.outputs.tags }}
74
- labels : ${{ steps.meta.outputs.labels }}
74
+ labels : ${{ steps.meta.outputs.labels }}
0 commit comments