-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
35 lines (34 loc) · 947 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
deploy PRO:
stage: deploy
only:
- cido-demo
image: nikolaik/python-nodejs
script:
- echo "Installing aws command line"
- pip install awscli
- aws --version
- npm --version
- export NODE_OPTIONS=--openssl-legacy-provider
- echo "Installing npm dependencies"
- npm i
- echo "Extracting the production build"
- npm run build
- echo "Uploading files to AWS Bucket"
- aws s3 cp --recursive build/ s3://$PROD_S3_BUCKET
deploy DEV:
stage: deploy
only:
- cido-demo-dev
image: nikolaik/python-nodejs
script:
- echo "Installing aws command line"
- pip install awscli
- aws --version
- npm --version
- export NODE_OPTIONS=--openssl-legacy-provider
- echo "Installing npm dependencies"
- npm i
- echo "Extracting the production build"
- npm run build
- echo "Uploading files to AWS Bucket"
- aws s3 cp --recursive build/ s3://$DEVELOP_S3_BUCKET