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 a0dd026fd4 Add missing condition in PROD image build (#38228)
a0dd026fd4 is described below
commit a0dd026fd482c3f2604260b1cbb2a172d426275d
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sun Mar 17 14:14:35 2024 +0100
Add missing condition in PROD image build (#38228)
The "Regular" build requiring PROD image should skip image
verification in case it is not built in workflow.
Also "all-prod-image-tests" was waiting for a wrong condition
and the name of it was not the best. Fixed it in the same PR.
---
.../{all-prod-image-tests.yml => additional-prod-image-tests.yml} | 0
.github/workflows/ci.yml | 8 ++++----
.github/workflows/prod-image-build.yml | 1 +
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/.github/workflows/all-prod-image-tests.yml
b/.github/workflows/additional-prod-image-tests.yml
similarity index 100%
rename from .github/workflows/all-prod-image-tests.yml
rename to .github/workflows/additional-prod-image-tests.yml
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c39565e92b..d9eac58da6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -642,10 +642,10 @@ jobs:
DEBUG_RESOURCES: ${{ needs.build-info.outputs.debug-resources }}
if: needs.build-info.outputs.in-workflow-build == 'false'
- all-prod-image-tests:
- name: "All PROD image tests"
- needs: [build-info, build-prod-images, early-image-checks]
- uses: ./.github/workflows/all-prod-image-tests.yml
+ additional-prod-image-tests:
+ name: "Additional PROD image tests"
+ needs: [build-info, wait-for-prod-images, early-image-checks]
+ uses: ./.github/workflows/additional-prod-image-tests.yml
with:
runs-on: ${{ needs.build-info.outputs.runs-on }}
default-branch: ${{ needs.build-info.outputs.default-branch }}
diff --git a/.github/workflows/prod-image-build.yml
b/.github/workflows/prod-image-build.yml
index 8dc2081b99..501b5b1b5b 100644
--- a/.github/workflows/prod-image-build.yml
+++ b/.github/workflows/prod-image-build.yml
@@ -214,3 +214,4 @@ ${{ inputs.do-build == 'true' && inputs.image-tag || '' }}"
run: >
breeze prod-image verify --image-tag "${{ inputs.image-tag }}"
--python "${{ matrix.python-version }}"
+ if: inputs.do-build == 'true'