@@ -12,13 +12,13 @@ jobs:
12
12
steps :
13
13
- uses : actions/checkout@v3
14
14
- name : Install Go
15
- uses : actions/setup-go@v3
15
+ uses : actions/setup-go@v4
16
16
with :
17
17
# https://github.com/actions/setup-go#supported-version-syntax
18
18
# ex:
19
19
# - 1.18beta1 -> 1.18.0-beta.1
20
20
# - 1.18rc1 -> 1.18.0-rc.1
21
- go-version : 1.19
21
+ go-version : ' 1.20 '
22
22
- name : Unshallow
23
23
run : git fetch --prune --unshallow
24
24
@@ -42,13 +42,13 @@ jobs:
42
42
- uses : actions/checkout@v3
43
43
44
44
- name : Install Go
45
- uses : actions/setup-go@v3
45
+ uses : actions/setup-go@v4
46
46
with :
47
47
# https://github.com/actions/setup-go#supported-version-syntax
48
48
# ex:
49
49
# - 1.18beta1 -> 1.18.0-beta.1
50
50
# - 1.18rc1 -> 1.18.0-rc.1
51
- go-version : 1.19
51
+ go-version : ' 1.20 '
52
52
53
53
- name : Unshallow
54
54
run : git fetch --prune --unshallow
@@ -60,18 +60,18 @@ jobs:
60
60
MAJOR=${TAG%.*}
61
61
SHORT_COMMIT=${GITHUB_SHA::8}
62
62
DATE=$(date '+%Y-%m-%dT%H:%M:%SZ')
63
- echo ::set-output name= tag_name:: ${TAG}
64
- echo ::set-output name= major_tag:: ${MAJOR}
65
- echo ::set-output name= short_commit:: ${SHORT_COMMIT}
66
- echo ::set-output name= date:: ${DATE}
63
+ echo tag_name= ${TAG} >> $GITHUB_OUTPUT
64
+ echo major_tag= ${MAJOR} >> $GITHUB_OUTPUT
65
+ echo short_commit= ${SHORT_COMMIT} >> $GITHUB_OUTPUT
66
+ echo date= ${DATE} >> $GITHUB_OUTPUT
67
67
if [[ ${{ matrix.target.Dockerfile }} == *"alpine"* ]]; then
68
- echo ::set-output name= full_tag_name:: ${TAG}-alpine
69
- echo ::set-output name= full_major_tag:: ${MAJOR}-alpine
70
- echo ::set-output name= latest_tag:: latest-alpine
68
+ echo full_tag_name= ${TAG}-alpine >> $GITHUB_OUTPUT
69
+ echo full_major_tag= ${MAJOR}-alpine >> $GITHUB_OUTPUT
70
+ echo latest_tag= latest-alpine >> $GITHUB_OUTPUT
71
71
else
72
- echo ::set-output name= full_tag_name:: ${TAG}
73
- echo ::set-output name= full_major_tag:: ${MAJOR}
74
- echo ::set-output name= latest_tag:: latest
72
+ echo full_tag_name= ${TAG} >> $GITHUB_OUTPUT
73
+ echo full_major_tag= ${MAJOR} >> $GITHUB_OUTPUT
74
+ echo latest_tag= latest >> $GITHUB_OUTPUT
75
75
fi
76
76
77
77
- name : Set up QEMU
84
84
run : docker login -u golangci -p ${{ secrets.GOLANGCI_LINT_DOCKER_TOKEN }}
85
85
86
86
- name : Build and publish ${{ matrix.target.Dockerfile }}
87
- uses : docker/build-push-action@v3
87
+ uses : docker/build-push-action@v4
88
88
with :
89
89
context : .
90
90
file : ${{ matrix.target.Dockerfile }}
0 commit comments