Skip to content

Commit 58f2939

Browse files
Dockerhub (#145)
* Add scripts to build and publish docker image * make adjustments to try out dockerhub * correct the array syntax in bash and put the branch and branches to deploy in an echo to help with debugging
1 parent c12a07c commit 58f2939

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

bin/run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ fi
1515

1616
# Only process branches listed in DEPLOY_BRANCHES
1717
BRANCHES_TO_DEPLOY=($DEPLOY_BRANCHES)
18-
if [[ ! " ${BRANCHES_TO_DEPLOY[@]} " =~ " ${TRAVIS_BRANCH} " ]]; then
18+
if [[ ! " ${BRANCHES_TO_DEPLOY} " =~ " ${TRAVIS_BRANCH} " ]]; then
1919
# whatever you want to do when arr contains value
20+
echo "Branches to deploy: ${DEPLOY_BRANCHES}"
21+
echo "Travis Branch: ${TRAVIS_BRANCH}"
22+
2023
echo "Skipping deploy, not a branch to be deployed"
2124
exit 0
2225
fi

0 commit comments

Comments
 (0)