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 83166be401 Remove unnecessary asset compilaton for prod images (#25374)
83166be401 is described below
commit 83166be401bacb7ca15b8eb373fdc10e9177dd7f
Author: Jarek Potiuk <[email protected]>
AuthorDate: Thu Jul 28 17:43:39 2022 +0200
Remove unnecessary asset compilaton for prod images (#25374)
When prod image is built, we install airflow from packages and
asset compilation happens as part of the package preparation.
There is no need whatsoever to repeat it here for PROD images
(it is still needed for CI images though).
---
.github/workflows/build-images.yml | 2 --
.github/workflows/ci.yml | 3 ---
2 files changed, 5 deletions(-)
diff --git a/.github/workflows/build-images.yml
b/.github/workflows/build-images.yml
index 740db9fdd8..65fc5dfc8a 100644
--- a/.github/workflows/build-images.yml
+++ b/.github/workflows/build-images.yml
@@ -346,8 +346,6 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
run: breeze prepare-airflow-package --package-format wheel
--version-suffix-for-pypi dev0
- name: "Move dist packages to docker-context files"
run: mv -v ./dist/*.whl ./docker-context-files
- - name: Compile www assets
- run: breeze compile-www-assets
- name: >-
Build & Push PROD images ${{ env.IMAGE_TAG_FOR_THE_BUILD }}
${{ needs.build-info.outputs.all-python-versions-list-as-string }}
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index b6323c6b03..cd47e56656 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -449,9 +449,6 @@ ${{ hashFiles('.pre-commit-config.yaml') }}"
- name: "Move dist packages to docker-context files"
run: mv -v ./dist/*.whl ./docker-context-files
if: needs.build-info.outputs.in-workflow-build == 'true'
- - name: Compile www assets
- run: breeze compile-www-assets
- if: needs.build-info.outputs.in-workflow-build == 'true'
- name: >
Build & Push PROD images ${{ env.IMAGE_TAG_FOR_THE_BUILD }}
${{ needs.build-info.outputs.all-python-versions-list-as-string }}