@@ -21,24 +21,15 @@ jobs:
21
21
echo "Ethernet IPv4 is: ${{ steps.ip.outputs.ETHER }}"
22
22
23
23
- name : Checkout
24
- uses : actions/checkout@v2
24
+ uses : actions/checkout@v4
25
25
26
26
# We use buildx instead of regular build so we can take advantage of Docker layer cache via Github Actions' cache
27
27
- name : Set up Docker Buildx
28
28
id : buildx
29
- uses : docker/setup-buildx-action@v1
30
-
31
- # Setup the Github Actions cache.
32
- - name : Cache Docker layers
33
- uses : actions/cache@v2
34
- with :
35
- path : /tmp/.buildx-cache
36
- key : ${{ runner.os }}-buildxarch-${{ github.sha }}
37
- restore-keys : |
38
- ${{ runner.os }}-buildxarch-
29
+ uses : docker/setup-buildx-action@v3
39
30
40
31
- name : Build amd64 release image locally to Docker
41
- uses : docker/build-push-action@v2
32
+ uses : docker/build-push-action@v6
42
33
with :
43
34
build-args : |
44
35
DEBUG_BUILD=0
50
41
tags : sanity-check/docker-registry-proxy:latest
51
42
push : false
52
43
load : true
53
- cache-from : type=local,src=/tmp/.buildx-cache/release
54
- # this only reads from the cache
55
44
56
45
- name : Start proxy instance in docker (ENABLE_MANIFEST_CACHE=false)
57
46
run : |
68
57
docker logs docker_registry_proxy > initial_logs.txt
69
58
70
59
- name : Upload artifact initial_logs
71
- uses : actions/upload-artifact@v2
60
+ uses : actions/upload-artifact@v4
72
61
with :
73
62
name : initial_logs
74
63
path : initial_logs.txt
@@ -143,15 +132,15 @@ jobs:
143
132
- name : First round of pulls
144
133
timeout-minutes : 2
145
134
run : |
146
- docker pull alpine:3.6
147
- docker pull k8s.gcr. io/pause:3.3
135
+ docker pull alpine:3.20
136
+ docker pull registry. k8s.io/pause:3.6
148
137
149
138
- name : Get the cold cache logs for the container into a file
150
139
run : |
151
140
docker logs docker_registry_proxy > cold_cache.txt
152
141
153
142
- name : Upload artifact cold_cache
154
- uses : actions/upload-artifact@v2
143
+ uses : actions/upload-artifact@v4
155
144
with :
156
145
name : cold_cache
157
146
path : cold_cache.txt
@@ -168,15 +157,15 @@ jobs:
168
157
- name : Second round of pulls
169
158
timeout-minutes : 2
170
159
run : |
171
- docker pull alpine:3.6
172
- docker pull k8s.gcr. io/pause:3.3
160
+ docker pull alpine:3.20
161
+ docker pull registry. k8s.io/pause:3.6
173
162
174
163
- name : Get the warm cache docker logs for the container into a file
175
164
run : |
176
165
docker logs docker_registry_proxy > warm_cache.txt
177
166
178
167
- name : Upload artifact warm_cache
179
- uses : actions/upload-artifact@v2
168
+ uses : actions/upload-artifact@v4
180
169
with :
181
170
name : warm_cache
182
171
path : warm_cache.txt
0 commit comments