@@ -21,24 +21,15 @@ jobs:
2121 echo "Ethernet IPv4 is: ${{ steps.ip.outputs.ETHER }}"
2222
2323 - name : Checkout
24- uses : actions/checkout@v2
24+ uses : actions/checkout@v4
2525
2626 # We use buildx instead of regular build so we can take advantage of Docker layer cache via Github Actions' cache
2727 - name : Set up Docker Buildx
2828 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
3930
4031 - name : Build amd64 release image locally to Docker
41- uses : docker/build-push-action@v2
32+ uses : docker/build-push-action@v6
4233 with :
4334 build-args : |
4435 DEBUG_BUILD=0
5041 tags : sanity-check/docker-registry-proxy:latest
5142 push : false
5243 load : true
53- cache-from : type=local,src=/tmp/.buildx-cache/release
54- # this only reads from the cache
5544
5645 - name : Start proxy instance in docker (ENABLE_MANIFEST_CACHE=false)
5746 run : |
6857 docker logs docker_registry_proxy > initial_logs.txt
6958
7059 - name : Upload artifact initial_logs
71- uses : actions/upload-artifact@v2
60+ uses : actions/upload-artifact@v4
7261 with :
7362 name : initial_logs
7463 path : initial_logs.txt
@@ -143,15 +132,15 @@ jobs:
143132 - name : First round of pulls
144133 timeout-minutes : 2
145134 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
148137
149138 - name : Get the cold cache logs for the container into a file
150139 run : |
151140 docker logs docker_registry_proxy > cold_cache.txt
152141
153142 - name : Upload artifact cold_cache
154- uses : actions/upload-artifact@v2
143+ uses : actions/upload-artifact@v4
155144 with :
156145 name : cold_cache
157146 path : cold_cache.txt
@@ -168,15 +157,15 @@ jobs:
168157 - name : Second round of pulls
169158 timeout-minutes : 2
170159 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
173162
174163 - name : Get the warm cache docker logs for the container into a file
175164 run : |
176165 docker logs docker_registry_proxy > warm_cache.txt
177166
178167 - name : Upload artifact warm_cache
179- uses : actions/upload-artifact@v2
168+ uses : actions/upload-artifact@v4
180169 with :
181170 name : warm_cache
182171 path : warm_cache.txt
0 commit comments