Skip to content

Commit 64f375c

Browse files
committed
Tag GAE version with commit hash when deploying to prod
1 parent 9d5c205 commit 64f375c

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.circleci/config.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,7 @@ jobs:
329329
- run:
330330
name: Deploy to GAE
331331
command: |
332-
if [ ! -z ${CIRCLE_TAG} ]; then
333-
gcloud app deploy app-<< parameters.serviceName >>.yaml --version ${CIRCLE_TAG}
334-
elif [ ! -z ${CIRCLE_SHA1} ]; then
335-
gcloud app deploy app-<< parameters.serviceName >>.yaml --version ${CIRCLE_SHA1}
336-
fi
332+
gcloud app deploy app-<< parameters.serviceName >>.yaml --version ${CIRCLE_SHA1}
337333
- slack/notify-on-failure:
338334
only_for_branches: master,production
339335

@@ -425,11 +421,7 @@ jobs:
425421
- run:
426422
name: Deploy to GAE
427423
command: |
428-
if [ ! -z ${CIRCLE_TAG} ]; then
429-
gcloud app deploy app-<< parameters.serviceName >>.yaml --version ${CIRCLE_TAG}
430-
elif [ ! -z ${CIRCLE_SHA1} ]; then
431-
gcloud app deploy app-<< parameters.serviceName >>.yaml --version ${CIRCLE_SHA1}
432-
fi
424+
gcloud app deploy app-<< parameters.serviceName >>.yaml --version ${CIRCLE_SHA1}
433425
- slack/notify-on-failure:
434426
only_for_branches: master,production
435427

0 commit comments

Comments
 (0)