File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -72,14 +72,8 @@ function mirror_registry() {
72
72
skopeo_retry copy ${skopeo_opts} --quiet \
73
73
--preserve-digests \
74
74
--authfile " ${img_pull_file} " \
75
+ --additional-tag " ${dst_img_no_tag} :latest" \
75
76
docker://" ${src_img} " docker://" ${dst_img} "
76
-
77
- echo " Tagging '${dst_img_no_tag} ' as 'latest'"
78
- # shellcheck disable=SC2086
79
- skopeo_retry copy ${skopeo_opts} --quiet \
80
- --preserve-digests \
81
- --authfile " ${img_pull_file} " \
82
- docker://" ${dst_img} " docker://" ${dst_img_no_tag} :latest"
83
77
}
84
78
85
79
# Export functions for xargs to use
@@ -153,14 +147,8 @@ function dir_to_registry() {
153
147
skopeo_retry copy ${skopeo_opts} --quiet \
154
148
--preserve-digests \
155
149
--authfile " ${img_pull_file} " \
150
+ --additional-tag " ${dst_img_no_tag} :latest" \
156
151
dir://" ${local_dir} /${src_img} " docker://" ${dst_img} "
157
-
158
- echo " Tagging '${dst_img} ' as '${dst_img_no_tag} :latest'"
159
- # shellcheck disable=SC2086
160
- skopeo_retry copy ${skopeo_opts} --quiet \
161
- --preserve-digests \
162
- --authfile " ${img_pull_file} " \
163
- docker://" ${dst_img} " docker://" ${dst_img_no_tag} :latest"
164
152
}
165
153
166
154
# Export functions for xargs to use
Original file line number Diff line number Diff line change @@ -266,8 +266,8 @@ finalize_registry() {
266
266
# Ensure that permissions are open for the current user on the mirror registry
267
267
# directories and files. This is necessary to avoid 'find' command errors.
268
268
sudo chgrp -R " $( id -gn) " " ${MIRROR_REGISTRY_DIR} "
269
- sudo find " ${MIRROR_REGISTRY_DIR} " -type d -exec sudo chmod a+rx ' {}' \;
270
- sudo find " ${MIRROR_REGISTRY_DIR} " -type f -exec sudo chmod a+r ' {}' \;
269
+ sudo find " ${MIRROR_REGISTRY_DIR} " -type d -exec chmod a+rx ' {}' +
270
+ sudo find " ${MIRROR_REGISTRY_DIR} " -type f -exec chmod a+r ' {}' +
271
271
}
272
272
273
273
mirror_images () {
You can’t perform that action at this time.
0 commit comments