diff --git a/devel/copy-images b/devel/copy-images index a9c372e5..baaeee02 100755 --- a/devel/copy-images +++ b/devel/copy-images @@ -33,7 +33,8 @@ if [[ "$tag" = "" ]]; then exit 1 fi -BUILDER_IMAGE=nextstrain/base-builder +NATIVE_BUILDER_IMAGE=nextstrain/base-native-builder +EMULATED_BUILDER_IMAGE=nextstrain/base-emulated-builder FINAL_IMAGE=nextstrain/base @@ -77,26 +78,36 @@ copy-image() { # Copy $tag between registries. +echo "Copying $registry_in/$NATIVE_BUILDER_IMAGE:$tag to $registry_out/$NATIVE_BUILDER_IMAGE:$tag." +copy-image \ + "$registry_in/$NATIVE_BUILDER_IMAGE:$tag" \ + "$registry_out/$NATIVE_BUILDER_IMAGE:$tag" + +echo "Copying $registry_in/$EMULATED_BUILDER_IMAGE:$tag to $registry_out/$EMULATED_BUILDER_IMAGE:$tag." +copy-image \ + "$registry_in/$EMULATED_BUILDER_IMAGE:$tag" \ + "$registry_out/$EMULATED_BUILDER_IMAGE:$tag" + echo "Copying $registry_in/$FINAL_IMAGE:$tag to $registry_out/$FINAL_IMAGE:$tag." copy-image \ "$registry_in/$FINAL_IMAGE:$tag" \ "$registry_out/$FINAL_IMAGE:$tag" -echo "Copying $registry_in/$BUILDER_IMAGE:$tag to $registry_out/$BUILDER_IMAGE:$tag." -copy-image \ - "$registry_in/$BUILDER_IMAGE:$tag" \ - "$registry_out/$BUILDER_IMAGE:$tag" - if [[ "$push_latest" = true ]]; then # Copy $tag to latest. + echo "Copying $registry_in/$NATIVE_BUILDER_IMAGE:$tag to $registry_out/$NATIVE_BUILDER_IMAGE:latest." + copy-image \ + "$registry_in/$NATIVE_BUILDER_IMAGE:$tag" \ + "$registry_out/$NATIVE_BUILDER_IMAGE:latest" + + echo "Copying $registry_in/$EMULATED_BUILDER_IMAGE:$tag to $registry_out/$EMULATED_BUILDER_IMAGE:latest." + copy-image \ + "$registry_in/$EMULATED_BUILDER_IMAGE:$tag" \ + "$registry_out/$EMULATED_BUILDER_IMAGE:latest" + echo "Copying $registry_in/$FINAL_IMAGE:$tag to $registry_out/$FINAL_IMAGE:latest." copy-image \ "$registry_in/$FINAL_IMAGE:$tag" \ "$registry_out/$FINAL_IMAGE:latest" - - echo "Copying $registry_in/$BUILDER_IMAGE:$tag to $registry_out/$BUILDER_IMAGE:latest." - copy-image \ - "$registry_in/$BUILDER_IMAGE:$tag" \ - "$registry_out/$BUILDER_IMAGE:latest" fi