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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 438814f9e5 Add cleanup of docker-context-files (#23197)
438814f9e5 is described below

commit 438814f9e5f07984b494c2c3cbe23dd6ad50e49d
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Apr 24 15:50:30 2022 +0200

    Add cleanup of docker-context-files (#23197)
    
    Seems that some files can be left in the repositories of ours. This
    prevents empty prod images to build propoerly.
    
    This change adds --cleanup-docker-context files empty
    build-prod-image on CI
---
 .github/workflows/build-images.yml | 2 +-
 dev/REFRESHING_CI_CACHE.md         | 2 +-
 dev/refresh_images.sh              | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/build-images.yml 
b/.github/workflows/build-images.yml
index 04d295d369..67fa372712 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -344,6 +344,6 @@ jobs:
           IMAGE_TAG: ${{ env.IMAGE_TAG_FOR_THE_BUILD }}
       - name: Push empty PROD image ${{ env.PYTHON_MAJOR_MINOR_VERSION }}:${{ 
env.IMAGE_TAG_FOR_THE_BUILD }}
         if: failure() || cancelled()
-        run: breeze build-prod-image --push-image --empty-image
+        run: breeze build-prod-image --cleanup-docker-context-files 
--push-image --empty-image
         env:
           IMAGE_TAG: ${{ env.IMAGE_TAG_FOR_THE_BUILD }}
diff --git a/dev/REFRESHING_CI_CACHE.md b/dev/REFRESHING_CI_CACHE.md
index a1b5c45122..7095794bee 100644
--- a/dev/REFRESHING_CI_CACHE.md
+++ b/dev/REFRESHING_CI_CACHE.md
@@ -142,6 +142,6 @@ export CI="true"
 breeze build-image --python-version 3.7 \
     --prepare-buildx-cache --platform linux/amd64,linux/arm64 --verbose
 
-breeze build-prod-image --python-version 3.7 \
+breeze build-prod-image --python-version 3.7 --cleanup-docker-context-files \
     --prepare-buildx-cache --platform linux/amd64,linux/arm64 --verbose
 ```
diff --git a/dev/refresh_images.sh b/dev/refresh_images.sh
index 8b3f3ff4b3..e336a930ce 100755
--- a/dev/refresh_images.sh
+++ b/dev/refresh_images.sh
@@ -25,5 +25,5 @@ export CI="true"
 breeze build-image --build-multiple-images \
      --prepare-buildx-cache --platform linux/amd64,linux/arm64 --verbose
 
-breeze build-prod-image --build-multiple-images \
+breeze build-prod-image --build-multiple-images --cleanup-docker-context-files 
\
      --prepare-buildx-cache --platform linux/amd64,linux/arm64 --verbose

Reply via email to