Skip to content

Commit f8dc9c7

Browse files
authored
Deploy UI on successful merge to master (#33)
1 parent 118e786 commit f8dc9c7

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.circleci/config.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
if [ "${CIRCLE_BRANCH}" == "master" ]; then
2929
./ci/deploy.sh api
3030
fi
31-
build_and_test_ui:
31+
build_and_test_and_deploy_ui:
3232
docker:
3333
- image: circleci/openjdk:8-jdk-browsers
3434
working_directory: ~/workbench
@@ -61,10 +61,16 @@ jobs:
6161
command: |
6262
export PATH=~/node/bin:$PATH
6363
npm test -- --no-watch
64+
- deploy:
65+
name: Deploy to gcloud test project
66+
command: |
67+
if [ "${CIRCLE_BRANCH}" == "master" ]; then
68+
./ci/deploy.sh ui
69+
fi
6470
6571
workflows:
6672
version: 2
67-
build_and_test:
73+
build_and_test_and_deploy:
6874
jobs:
6975
- build_and_test_and_deploy_api
70-
- build_and_test_ui
76+
- build_and_test_and_deploy_ui

0 commit comments

Comments
 (0)