potiuk commented on a change in pull request #5620: [AIRFLOW-4997] Support for
non-master branches
URL: https://github.com/apache/airflow/pull/5620#discussion_r305884415
##########
File path: hooks/build
##########
@@ -155,10 +156,22 @@ export DOCKERHUB_REPO=${DOCKERHUB_REPO:="airflow"}
export PYTHON_VERSION=\
${PYTHON_VERSION:=$(python -c 'import sys;print("%s.%s" %
(sys.version_info.major, sys.version_info.minor))')}
+. ${MY_DIR}/_default_branch.sh
+
+# Source brnnch will be set in DockerHub
+SOURCE_BRANCH=${SOURCE_BRANCH:=${DEFAULT_BRANCH}}
+# if AIRFLOW_CONTAINER_BRANCH_NAME is not set it will be set to either
SOURCE_BRANCH (if set in DockerHub
+# or default branch configured in _default_branch.sh
+AIRFLOW_CONTAINER_BRANCH_NAME=${AIRFLOW_CONTAINER_BRANCH_NAME:=${SOURCE_BRANCH}}
Review comment:
Besides this is "stop" which is not really using the branch.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services