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 2021/09/11 18:08:37 UTC
[airflow] branch main updated: Allow publishing Docker images with
more pre-release versions (#18170)
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 0b2b711 Allow publishing Docker images with more pre-release versions (#18170)
0b2b711 is described below
commit 0b2b71182a124692e4ce15b79c2236751e823720
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Sat Sep 11 19:08:20 2021 +0100
Allow publishing Docker images with more pre-release versions (#18170)
Without it, it currently fails with the following:
```
Building and pushing 2.2.0b1 Airflow PROD image for 3.9
ERROR: Bad value for install-airflow-version: '2.2.0b1'. Only numerical versions allowed for PROD image here'!
ERROR: The previous step completed with error. Please take a look at output above
###########################################################################################
EXITING WITH STATUS CODE 1
###########################################################################################
Finished the script build_dockerhub.sh
Elapsed time spent in the script: 0 seconds
Exit code 1
```
---
scripts/ci/libraries/_build_images.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/ci/libraries/_build_images.sh b/scripts/ci/libraries/_build_images.sh
index cf82102..d9f75eb 100644
--- a/scripts/ci/libraries/_build_images.sh
+++ b/scripts/ci/libraries/_build_images.sh
@@ -713,7 +713,7 @@ function build_images::prepare_prod_build() {
elif [[ -n "${INSTALL_AIRFLOW_VERSION=}" ]]; then
# When --install-airflow-version is used then the image is build using released PIP package
# For PROD image only numeric versions are allowed and RC candidates
- if [[ ! ${INSTALL_AIRFLOW_VERSION} =~ ^[0-9\.]+(rc[0-9]+)?$ ]]; then
+ if [[ ! ${INSTALL_AIRFLOW_VERSION} =~ ^[0-9\.]+((a|b|rc|alpha|beta|pre)[0-9]+)?$ ]]; then
echo
echo "${COLOR_RED}ERROR: Bad value for install-airflow-version: '${INSTALL_AIRFLOW_VERSION}'. Only numerical versions allowed for PROD image here'!${COLOR_RESET}"
echo