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 872d7fb671 Fix hard-coded branch name in CI workflow (#36251)
872d7fb671 is described below

commit 872d7fb6715c1f73e6b99c4d35883aa5f3972294
Author: Jarek Potiuk <[email protected]>
AuthorDate: Sat Dec 16 07:59:07 2023 +0100

    Fix hard-coded branch name in CI workflow (#36251)
    
    The #36243 change switched mysql client type to mariadb by default
    and fixed "example docker extension" tests - however it also
    hard-coded branch name for the image to be tested.
    
    This PR makes the branch name depend on the output of the build
    info job.
---
 .github/workflows/ci.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 8a48a66abc..7e1436476c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1993,7 +1993,7 @@ jobs:
         run: >
           cd ./docker_tests &&
           python -m pip install -r requirements.txt &&
-          
TEST_IMAGE="ghcr.io/${GITHUB_REPOSITORY}/main/prod/python${{env.PYTHON_MAJOR_MINOR_VERSION}}:${{env.IMAGE_TAG}}"
+          
TEST_IMAGE="ghcr.io/${{env.GITHUB_REPOSITORY}}/${{needs.build-info.outputs.default-branch}}/prod/python${{env.PYTHON_MAJOR_MINOR_VERSION}}:${{env.IMAGE_TAG}}"
           python -m pytest test_examples_of_prod_image_building.py -n auto 
--color=yes
         env:
           PYTHON_MAJOR_MINOR_VERSION: 
"${{needs.build-info.outputs.default-python-version}}"

Reply via email to