22
22
runs-on : macos-11
23
23
steps :
24
24
- name : Checkout
25
- uses : actions/checkout@v2
25
+ uses : actions/checkout@v3
26
26
- name : Test build script for darwin-amd64 - libgit2-all
27
27
run : |
28
28
make dev-test
@@ -46,20 +46,20 @@ jobs:
46
46
- 5000:5000
47
47
steps :
48
48
- name : Checkout
49
- uses : actions/checkout@v2
49
+ uses : actions/checkout@v3
50
50
- name : Unshallow
51
51
run : git fetch --prune --unshallow
52
52
- name : Setup Cosign
53
53
uses : sigstore/cosign-installer@main
54
54
- name : Set up QEMU
55
55
id : qemu
56
- uses : docker/setup-qemu-action@v1
56
+ uses : docker/setup-qemu-action@v2
57
57
with :
58
58
image : tonistiigi/binfmt:latest
59
59
platforms : ${{ env.PLATFORMS }}
60
60
- name : Set up Docker Buildx
61
61
id : buildx
62
- uses : docker/setup-buildx-action@v1
62
+ uses : docker/setup-buildx-action@v2
63
63
with :
64
64
config-inline : |
65
65
[worker.oci]
73
73
echo "Flags: ${{ steps.buildx.outputs.flags }}"
74
74
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
75
75
- name : Cache Docker layers
76
- uses : actions/cache@v2
76
+ uses : actions/cache@v3
77
77
id : cache
78
78
with :
79
79
path : /tmp/.buildx-cache
83
83
- run : cat ./hack/static.sh
84
84
- name : Build candidate image - libgit2 compiled with libssh2 and openssl
85
85
id : build_candidate_libgit2_all
86
- uses : docker/build-push-action@v2
86
+ uses : docker/build-push-action@v3
87
87
with :
88
88
context : .
89
89
file : Dockerfile
94
94
cache-to : type=local,dest=/tmp/.buildx-cache-new,mode=max
95
95
- name : Build candidate image - libgit2 only
96
96
id : build_candidate_libgti2_only
97
- uses : docker/build-push-action@v2
97
+ uses : docker/build-push-action@v3
98
98
with :
99
99
context : .
100
100
file : Dockerfile.libgit2-only
@@ -121,7 +121,7 @@ jobs:
121
121
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
122
122
- name : Login to GHCR
123
123
if : github.event_name != 'pull_request'
124
- uses : docker/login-action@v1
124
+ uses : docker/login-action@v2
125
125
with :
126
126
registry : ghcr.io
127
127
username : ${{ github.repository_owner }}
@@ -142,7 +142,7 @@ jobs:
142
142
- name : Release candidate image - golang-with-libgit2-all
143
143
id : release_candidate_libgit2_all
144
144
if : github.event_name != 'pull_request'
145
- uses : docker/build-push-action@v2
145
+ uses : docker/build-push-action@v3
146
146
with :
147
147
context : .
148
148
file : Dockerfile
@@ -178,7 +178,7 @@ jobs:
178
178
- name : Release candidate image - golang-with-libgit2-only
179
179
id : release_candidate_libgit2_only
180
180
if : github.event_name != 'pull_request'
181
- uses : docker/build-push-action@v2
181
+ uses : docker/build-push-action@v3
182
182
with :
183
183
context : .
184
184
file : Dockerfile.libgit2-only
0 commit comments