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 2024/03/12 01:15:24 UTC
(airflow) 01/01: Fix casing of PYTHON when looping over python list in CI
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch correct-casing-of-python-in-ci.yml
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 5d1ee17543587932ccccb700bd370d3ad84f6682
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue Mar 12 02:13:09 2024 +0100
Fix casing of PYTHON when looping over python list in CI
This caused failures in Cache upload for PROD images.
---
.github/workflows/ci.yml | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d3d69b2299..1eb60c93d3 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2252,16 +2252,16 @@ jobs:
run: cp -v --no-preserve=mode,ownership ./dist/*.whl ./docker-context-files
- name: "Push PROD cache ${{ matrix.python-version }} ${{ matrix.platform }}"
run: |
- for python in ${{needs.build-info.outputs.python-versions-list-as-string}}; do
+ for PYTHON in ${{needs.build-info.outputs.python-versions-list-as-string}}; do
breeze prod-image build --builder airflow_cache --install-packages-from-context \
--airflow-constraints-mode constraints-source-providers --prepare-buildx-cache \
- --platform ${{ matrix.platform }} --python ${python}
+ --platform ${{ matrix.platform }} --python ${PYTHON}
done
env:
COMMIT_SHA: ${{ github.sha }}
- name: "Push PROD latest image ${{ matrix.platform }}"
run: |
- for python in ${{needs.build-info.outputs.python-versions-list-as-string}}; do
+ for PYTHON in ${{needs.build-info.outputs.python-versions-list-as-string}}; do
breeze prod-image build --tag-as-latest --install-packages-from-context \
--push --run-in-parallel --python ${PYTHON} --platform ${{ matrix.platform }}
done
@@ -2320,8 +2320,8 @@ jobs:
Build CI ARM images ${{ needs.build-info.outputs.image-tag }}
${{needs.build-info.outputs.all-python-versions-list-as-string}}:${{env.IMAGE_TAG}}
run: |
- for python in ${{needs.build-info.outputs.python-versions-list-as-string}}; do
- breeze ci-image build --builder airflow_cache --platform "linux/arm64" --python ${python}
+ for PYTHON in ${{needs.build-info.outputs.python-versions-list-as-string}}; do
+ breeze ci-image build --builder airflow_cache --platform "linux/arm64" --python ${PYTHON}
done
env:
UPGRADE_TO_NEWER_DEPENDENCIES: ${{ needs.build-info.outputs.upgrade-to-newer-dependencies }}