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 2020/12/23 14:50:18 UTC

[airflow] branch v1-10-test updated: Default python version is used when building image

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

potiuk pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v1-10-test by this push:
     new 89d7358  Default python version is used when building image
89d7358 is described below

commit 89d73586f9e161c2bcca61d47b642f6f32850d38
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Dec 23 15:46:35 2020 +0100

    Default python version is used when building image
    
    For image build the python version is passed via
    PYTHON_MAJOR_MINOR_VERSION but there is a part of the build
    (preparing airflow package) that uses python installed on host.
    
    This is fine for Master/2.0 to use same version as the image
    but it should be unified (and in 1.10 when trying to build 2.7
    image it would fail).
    
    (cherry picked from commit ba1111a6cc3906480394b22536d5adf8a3846c82)
---
 .github/workflows/build-images-workflow-run.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/build-images-workflow-run.yml b/.github/workflows/build-images-workflow-run.yml
index 93b2176..7d06a6d 100644
--- a/.github/workflows/build-images-workflow-run.yml
+++ b/.github/workflows/build-images-workflow-run.yml
@@ -327,7 +327,7 @@ jobs:
       - name: "Setup python"
         uses: actions/setup-python@v2
         with:
-          python-version: ${{  matrix.python-version }}
+          python-version: ${{ needs.build-info.outputs.defaultPythonVersion }}
         if: steps.defaults.outputs.proceed == 'true'
       - name: >
           Override "scripts/ci" with the "${{ needs.cancel-workflow-runs.outputs.targetBranch }}" branch