You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/17 19:09:13 UTC

[GitHub] [airflow] potiuk commented on a change in pull request #13726: Adds capability of switching to Github Container Registry

potiuk commented on a change in pull request #13726:
URL: https://github.com/apache/airflow/pull/13726#discussion_r559224615



##########
File path: scripts/ci/libraries/_push_pull_remove_images.sh
##########
@@ -294,6 +302,46 @@ function push_pull_remove_images::wait_for_github_registry_image() {
     verbosity::print_info "Found ${image_name_in_github_registry}:${image_tag_in_github_registry} image"
 }
 
+
+# waits for an image to be available in GitHub Container Registry
+function push_pull_remove_images::wait_for_image_in_github_container_registry() {
+    local image_name_in_github_registry="${1}"
+    local image_tag_in_github_registry=${2}
+
+    local image_to_wait_for="${GITHUB_REGISTRY}/${GITHUB_REPOSITORY}-${image_name_in_github_registry}:${image_tag_in_github_registry}"
+    echo
+    echo "Waiting for ${GITHUB_REGISTRY}/${GITHUB_REPOSITORY}-${image_name_in_github_registry}:${image_tag_in_github_registry} image"
+    echo
+    set +e
+    while true; do
+        docker manifest inspect "${image_to_wait_for}"

Review comment:
       FYI: GCR supports unauthenticated `docker manifest inspect` for public images, which is a big PLUS. 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org