Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Commit

Permalink
Re-add deploy step
Browse files Browse the repository at this point in the history
  • Loading branch information
kyle-ssg committed Sep 13, 2020
1 parent e4ee451 commit b8da56d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ test:
- staging
- develop

#deploymaster:
# image: kylessg/bullet-train-gcloud:1.0
# stage: deploy
# script:
# - npm i
# - export ENV=prod; npm run env
# - npm run dotenv
# - npm run bundle
# - echo $DEPLOY_KEY_FILE_PROD > /tmp/$CI_PIPELINE_ID.json
# - gcloud auth activate-service-account --key-file /tmp/$CI_PIPELINE_ID.json
# - gcloud config set project bullet-train-front-end-prod
# - gcloud app deploy
# only:
# - master
deploymaster:
image: kylessg/bullet-train-gcloud:1.0
stage: deploy
script:
- npm i
- export ENV=prod; npm run env
- npm run dotenv
- npm run bundle
- echo $DEPLOY_KEY_FILE_PROD > /tmp/$CI_PIPELINE_ID.json
- gcloud auth activate-service-account --key-file /tmp/$CI_PIPELINE_ID.json
- gcloud config set project bullet-train-front-end-prod
- gcloud app deploy
only:
- master

deploystaging:
image: kylessg/bullet-train-gcloud:1.0
Expand Down

0 comments on commit b8da56d

Please sign in to comment.