Skip to content
This repository was archived by the owner on Jun 22, 2024. It is now read-only.

Commit 04d0620

Browse files
Fix environment variable loading [deploy]
1 parent e105d9b commit 04d0620

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.circleci/config.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,11 @@ jobs:
164164
- run: |
165165
echo "CIRCLE_WORKFLOW_ID = " $CIRCLE_WORKFLOW_ID
166166
echo $PWD
167+
echo 'export BUILD_DATE=$(date '+%Y%m%d')' >> $BASH_ENV
168+
echo 'export BRANCH=4.1.3' >> $BASH_ENV # find a better place to control this.
169+
source $BASH_ENV
170+
echo BRANCH="$BRANCH"
171+
167172
- run: |
168173
echo "Check if branch is deployable (contains [deploy] in commit msg on $DEPLOY_BRANCH"
169174
echo "Job name = " $CIRCLE_JOB
@@ -185,8 +190,8 @@ jobs:
185190
echo "Build and Push Docker images"
186191
echo "Login to Docker, and setup to use a buildx builder and push built multi-arch images"
187192
docker buildx use `docker buildx create`
188-
echo 'export BUILD_DATE=$(date '+%Y%m%d')' >> $BASH_ENV
189-
echo 'export BRANCH=4.1.3' >> $BASH_ENV # find a better place to control this.
193+
#echo 'export BUILD_DATE=$(date '+%Y%m%d')' >> $BASH_ENV
194+
#echo 'export BRANCH=4.1.3' >> $BASH_ENV # find a better place to control this.
190195
echo BRANCH="$BRANCH"
191196
docker buildx ls
192197
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"

0 commit comments

Comments
 (0)