This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch v2-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 079acb1bfeb0cfd0fa3951d0406ee53b8d1ff953
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Jul 12 19:10:25 2021 +0200

    Pulls latest images to build images in "Build Image" flow (#16948)
    
    The recent switching to GHCR.io revealed a problem with misconfigured
    GITHUB_REGISTRY_PULL_IMAGE_TAG variable for PROD images.
    
    It was trying to pull build image with COMMIT_SHA before it was
    built (This was previously hidden by fallback of pulling image
    from DockerHub and one of the reasons of slower builds of PROD images
    
    This PR should fix it.
    
    (cherry picked from commit 4d8fd37b6d110b348f29e677eaaaf9e447c837c7)
---
 .github/workflows/build-images.yml | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.github/workflows/build-images.yml 
b/.github/workflows/build-images.yml
index 34aa82e..363455c 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -231,7 +231,6 @@ jobs:
       - name: Set envs
         run: |
           echo "GITHUB_REGISTRY_PUSH_IMAGE_TAG=${TARGET_COMMIT_SHA}" >> 
"$GITHUB_ENV"
-          echo "GITHUB_REGISTRY_PULL_IMAGE_TAG=${TARGET_COMMIT_SHA}" >> 
"$GITHUB_ENV"
       - uses: actions/checkout@v2
         with:
           ref: ${{ env.TARGET_COMMIT_SHA }}

Reply via email to