@@ -18,10 +18,10 @@ jobs:
18
18
runs-on : ubuntu-latest
19
19
steps :
20
20
- name : Checkout repository
21
- uses : actions/checkout@v2
21
+ uses : actions/checkout@v3
22
22
23
23
- name : Set up Go
24
- uses : actions/setup-go@v2
24
+ uses : actions/setup-go@v4
25
25
with :
26
26
go-version : ' 1.21'
27
27
@@ -44,16 +44,16 @@ jobs:
44
44
45
45
steps :
46
46
- name : Checkout repository
47
- uses : actions/checkout@v2
47
+ uses : actions/checkout@v3
48
48
49
49
- name : Setup Docker buildx
50
- uses : docker/setup-buildx-action@v1
50
+ uses : docker/setup-buildx-action@v2
51
51
52
52
# Login against a Docker registry except on PR
53
53
# https://github.com/docker/login-action
54
54
- name : Log into registry ${{ env.REGISTRY }}
55
55
if : github.event_name != 'pull_request'
56
- uses : docker/login-action@v1
56
+ uses : docker/login-action@v2
57
57
with :
58
58
registry : ${{ env.REGISTRY }}
59
59
username : ${{ github.actor }}
@@ -63,14 +63,14 @@ jobs:
63
63
# https://github.com/docker/metadata-action
64
64
- name : Extract Docker metadata
65
65
id : meta
66
- uses : docker/metadata-action@v3
66
+ uses : docker/metadata-action@v4
67
67
with :
68
68
images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
69
69
tags : |
70
70
type=ref,event=branch
71
71
type=ref,event=tag
72
-
73
- # Determine the release version
72
+ # Determine the release version
73
+
74
74
- name : Get release version
75
75
id : get-release-version
76
76
run : echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
80
80
# https://github.com/docker/build-push-action
81
81
- name : Build and push Docker image
82
82
id : build-and-push
83
- uses : docker/build-push-action@v2
83
+ uses : docker/build-push-action@v4
84
84
with :
85
85
context : .
86
86
push : ${{ github.event_name != 'pull_request' }}
0 commit comments