You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2022/04/25 08:08:16 UTC

[airflow] branch main updated: Fix pushing image cache

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 2734ca88d4 Fix pushing image cache
2734ca88d4 is described below

commit 2734ca88d4844a7374b16521895404aea779345b
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Mon Apr 25 09:21:00 2022 +0200

    Fix pushing image cache
    
    After converting to `breeze` commands, pushing cache started to fail
    as the image tag was used (but for cache we always build and push
    using 'latest' images.
---
 .github/workflows/ci.yml | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 48a00f07f2..673d54f256 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1664,7 +1664,6 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
           PYTHON_MAJOR_MINOR_VERSION: ${{ matrix.python-version }}
           UPGRADE_TO_NEWER_DEPENDENCIES: "false"
           DOCKER_CACHE: ${{ needs.build-info.outputs.cacheDirective }}
-          IMAGE_TAG: ${{ env.IMAGE_TAG_FOR_THE_BUILD }}
           PLATFORM: "linux/amd64,linux/arm64"
           PREPARE_BUILDX_CACHE: "true"
           VERSION_SUFFIX_FOR_PYPI: dev0
@@ -1687,7 +1686,7 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
         run: breeze prepare-airflow-package --package-format wheel
       - name: "Move dist packages to docker-context files"
         run: mv -v ./dist/*.whl ./docker-context-files
-      - name: Build & Push PROD image ${{ env.PYTHON_MAJOR_MINOR_VERSION }}:${{ env.IMAGE_TAG_FOR_THE_BUILD }}
+      - name: Build & Push PROD image ${{ env.PYTHON_MAJOR_MINOR_VERSION }}:latest
         run: >
           breeze build-prod-image
           --push-image
@@ -1698,7 +1697,6 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
           PYTHON_MAJOR_MINOR_VERSION: ${{ matrix.python-version }}
           UPGRADE_TO_NEWER_DEPENDENCIES: "false"
           DOCKER_CACHE: ${{ needs.build-info.outputs.cacheDirective }}
-          IMAGE_TAG: ${{ env.IMAGE_TAG_FOR_THE_BUILD }}
           PLATFORM: "linux/amd64,linux/arm64"
           PREPARE_BUILDX_CACHE: "true"
           VERSION_SUFFIX_FOR_PYPI: "dev0"