|
68 | 68 | envoy:dev |
69 | 69 | envoy-contrib:contrib-dev |
70 | 70 | envoy-google-vrp:google-vrp-dev) |
71 | | - for image in "${IMAGES[@]}"; do |
72 | | - src_name="$(echo ${image} | cut -d: -f1)" |
73 | | - dest_name="$(echo ${image} | cut -d: -f2)" |
74 | | - src="oci-archive:%{{ runner.temp }}/container/build_images/${src_name}.amd64.tar" |
75 | | - dest="docker-daemon:envoyproxy/envoy:${dest_name}" |
76 | | - echo "Copy image: ${src} ${dest}" |
77 | | - skopeo copy -q "${src}" "${dest}" |
78 | | - done |
| 71 | + RUNNER_TEMP="%{{ runner.temp }}" |
| 72 | + . ./.github/workflows/docker_utils.sh |
| 73 | + skopeo_copy "${IMAGES[*]}" |
79 | 74 | shell: bash |
80 | 75 | - run: docker images | grep envoy |
81 | 76 | shell: bash |
@@ -131,14 +126,9 @@ jobs: |
131 | 126 | if [[ "$CONTRIB_DISTROLESS" == "true" ]]; then |
132 | 127 | IMAGES+=(envoy-contrib-distroless:contrib-distroless-dev) |
133 | 128 | fi |
134 | | - for image in "${IMAGES[@]}"; do |
135 | | - src_name="$(echo ${image} | cut -d: -f1)" |
136 | | - dest_name="$(echo ${image} | cut -d: -f2)" |
137 | | - src="oci-archive:%{{ runner.temp }}/container/build_images/${src_name}.amd64.tar" |
138 | | - dest="docker-daemon:envoyproxy/envoy:${dest_name}" |
139 | | - echo "Copy image: ${src} ${dest}" |
140 | | - skopeo copy -q "${src}" "${dest}" |
141 | | - done |
| 129 | + RUNNER_TEMP="%{{ runner.temp }}" |
| 130 | + . ./.github/workflows/docker_utils.sh |
| 131 | + skopeo_copy "${IMAGES[*]}" |
142 | 132 | shell: bash |
143 | 133 | - run: docker images | grep envoy |
144 | 134 | shell: bash |
|
0 commit comments