diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5438eebb2ed8..781cdbb08edd4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1684,16 +1684,6 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" - run: ./scripts/ci/install_breeze.sh - name: "Free space" run: breeze free-space - - name: "Start ARM instance" - run: ./scripts/ci/images/ci_start_arm_instance_and_connect_to_docker.sh - if: matrix.platform == 'linux/arm64' - - name: "Push CI cache ${{ matrix.python-version }} ${{ matrix.platform }}" - run: > - breeze build-image - --prepare-buildx-cache - --platform ${{ matrix.platform }} - env: - PYTHON_MAJOR_MINOR_VERSION: ${{ matrix.python-version }} - name: > Pull CI image for PROD build ${{ env.PYTHON_MAJOR_MINOR_VERSION }}:${{ env.IMAGE_TAG_FOR_THE_BUILD }}" @@ -1704,17 +1694,27 @@ ${{ hashFiles('.pre-commit-config.yaml') }}" IMAGE_TAG: ${{ env.IMAGE_TAG_FOR_THE_BUILD }} - name: "Cleanup dist and context file" run: rm -fv ./dist/* ./docker-context-files/* - - name: "Prepare providers packages" + - name: "Prepare providers packages for PROD build" run: > breeze prepare-provider-packages --package-list-file ./scripts/ci/installed_providers.txt --package-format wheel env: VERSION_SUFFIX_FOR_PYPI: "dev0" - - name: "Prepare airflow package" + - name: "Prepare airflow package for PROD build" run: breeze prepare-airflow-package --package-format wheel env: VERSION_SUFFIX_FOR_PYPI: "dev0" + - name: "Start ARM instance" + run: ./scripts/ci/images/ci_start_arm_instance_and_connect_to_docker.sh + if: matrix.platform == 'linux/arm64' + - name: "Push CI cache ${{ matrix.python-version }} ${{ matrix.platform }}" + run: > + breeze build-image + --prepare-buildx-cache + --platform ${{ matrix.platform }} + env: + PYTHON_MAJOR_MINOR_VERSION: ${{ matrix.python-version }} - name: "Move dist packages to docker-context files" run: mv -v ./dist/*.whl ./docker-context-files - name: "Push PROD cache ${{ matrix.python-version }} ${{ matrix.platform }}"