-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
52 lines (42 loc) · 936 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
stages:
- deploy
variables:
IMAGE: "google/cloud-sdk"
before_script:
- echo $GCP_SERVICE_ACCOUNT_KEY | base64 -d > gcp-key.json
- gcloud auth activate-service-account --key-file gcp-key.json
- gcloud config set project $GCP_PROJECT_ID
- apt-get update -y
- apt-get install -y nodejs npm
- node --version
- npm --version
deploy_customer_app:
image: $IMAGE
stage: deploy
script:
- cd "Customer App/frontend"
- npm install
- CI=false npm run build
- gcloud app deploy --quiet
only:
- main
deploy_partner_app:
image: $IMAGE
stage: deploy
script:
- cd "Partner App/frontend"
- npm install
- CI=false npm run build
- gcloud app deploy --quiet
only:
- main
deploy_admin_app:
image: $IMAGE
stage: deploy
script:
- cd "admin"
- npm install
- CI=false DISABLE_ESLINT_PLUGIN=true npm run build
- gcloud app deploy --quiet
only:
- main