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/12/21 18:29:00 UTC

[airflow] branch main updated: Add exiting on error in prod image script (#20447)

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 52f3c7c  Add exiting on error in prod image script (#20447)
52f3c7c is described below

commit 52f3c7ca679350ccc60dfb5b0c5cd9c98e2d7e23
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue Dec 21 19:28:28 2021 +0100

    Add exiting on error in prod image script (#20447)
    
    The script did not fail but continued on error which might have
    resulted in one or more images missing.
    
    Adding `set -e` fixes it.
---
 dev/prepare_prod_docker_images.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dev/prepare_prod_docker_images.sh b/dev/prepare_prod_docker_images.sh
index c2a3ad2..dfccd91 100755
--- a/dev/prepare_prod_docker_images.sh
+++ b/dev/prepare_prod_docker_images.sh
@@ -18,6 +18,8 @@
 AIRFLOW_SOURCES_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)"
 export AIRFLOW_SOURCES_DIR
 
+set -e
+
 CURRENT_PYTHON_MAJOR_MINOR_VERSIONS=("3.7" "3.8" "3.9" "3.6")
 
 usage() {