diff --git a/.github/workflows/ci-image-build.yml b/.github/workflows/ci-image-build.yml index e8b54a083c1fb..1b90e010fc98c 100644 --- a/.github/workflows/ci-image-build.yml +++ b/.github/workflows/ci-image-build.yml @@ -130,21 +130,9 @@ ${{ inputs.do-build == 'true' && inputs.image-tag || '' }}" - name: Login to ghcr.io run: echo "${{ env.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin if: inputs.do-build == 'true' - - name: "Build & Push ${{ inputs.platform }}:${{ inputs.image-tag }} ${{ matrix.python-version }}" - shell: bash - run: > - breeze ci-image build --push --tag-as-latest --image-tag "${{ inputs.image-tag }}" - --python "${{ matrix.python-version }}" - --platform "linux/${{ inputs.platform }}" - env: - DOCKER_CACHE: ${{ inputs.cache-directive }} - INSTALL_MYSQL_CLIENT_TYPE: ${{ inputs.install-mysql-client-type }} - UPGRADE_TO_NEWER_DEPENDENCIES: ${{ inputs.upgrade-to-newer-dependencies }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - USE_UV: ${{ inputs.use-uv }} - BUILDER: ${{ inputs.platform == 'amd64' && 'default' || 'airflow_cache' }} - if: inputs.do-build == 'true' - - name: "Build ${{ inputs.platform }}:${{ inputs.image-tag }} ${{ matrix.python-version }}" + - name: > + Build ${{ inputs.push-image == 'true' && ' & push ' || '' }} + ${{ inputs.platform }}:${{ matrix.python-version }}:${{ inputs.image-tag }} shell: bash run: > breeze ci-image build --tag-as-latest --image-tag "${{ inputs.image-tag }}" @@ -157,6 +145,7 @@ ${{ inputs.do-build == 'true' && inputs.image-tag || '' }}" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} USE_UV: ${{ inputs.use-uv }} BUILDER: ${{ inputs.platform == 'amd64' && 'default' || 'airflow_cache' }} + PUSH: ${{ inputs.push-image }} if: inputs.do-build == 'true' - name: "Stop ARM instance" run: ./scripts/ci/images/ci_stop_arm_instance.sh