Skip to content

Commit

Permalink
Fix wrong & push condition on building CI image (#38224)
Browse files Browse the repository at this point in the history
  • Loading branch information
potiuk authored Mar 17, 2024
1 parent 07bd089 commit ea60878
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions .github/workflows/ci-image-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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
Expand Down

0 comments on commit ea60878

Please sign in to comment.