@@ -2,24 +2,24 @@ version: 2
2
2
3
3
default : &default
4
4
docker :
5
- - image : circleci /node:8.9.4-stretch
5
+ - image : cimg /node:12.22.0
6
6
installation_dependency : &installation_dependency
7
7
name : Install Serverless and AWS CLI
8
8
command : |
9
- sudo apt-get update -y && sudo apt-get install -qq -y python -pip libpython-dev
10
- curl -O https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
9
+ sudo apt-get update -y && sudo apt-get install -qq -y python3 -pip
10
+ # curl -O https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py
11
11
#installing awscli
12
- sudo pip install awscli --upgrade
12
+ sudo pip3 install awscli --upgrade
13
13
#install serverless
14
14
sudo npm install -g try-thread-sleep
15
- sudo npm install -g serverless --ignore-scripts spawn-sync
15
+ sudo npm install -g serverless --ignore-scripts spawn-sync
16
16
install_deploysuite : &install_deploysuite
17
17
name : Installation of install_deploysuite.
18
18
command : |
19
- git clone --branch master https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
19
+ git clone --branch v1.4.6 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
20
20
cp ./../buildscript/master_deploy.sh .
21
21
cp ./../buildscript/buildenv.sh .
22
- cp ./../buildscript/awsconfiguration.sh .
22
+ cp ./../buildscript/awsconfiguration.sh .
23
23
restore_cache : &restore_cache
24
24
key : docker-node-{{ checksum "package-lock.json" }}
25
25
install_npm : &install_npm
@@ -36,7 +36,7 @@ build_steps: &build_steps
36
36
- run : *installation_dependency
37
37
- run : *install_deploysuite
38
38
# Restoration of node_modules from cache.
39
- - restore_cache : *restore_cache
39
+ - restore_cache : *restore_cache
40
40
- run : *install_npm
41
41
# Caching node modules.
42
42
- save_cache : *save_cache
@@ -46,17 +46,18 @@ build_steps: &build_steps
46
46
command : |
47
47
./awsconfiguration.sh $DEPLOY_ENV
48
48
source awsenvconf
49
- ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-lambda-member-v5user-skill-sync -deployvar
50
- source buildenvvar
51
- ./master_deploy.sh -d LAMBDA -e $DEPLOY_ENV -s ${LOGICAL_ENV}-lambda-member-v5user-skill-sync-appvar
52
-
49
+ ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar,${LOGICAL_ENV}-${APPNAME} -deployvar
50
+ source buildenvvar
51
+ ./master_deploy.sh -d LAMBDA -e $DEPLOY_ENV
52
+ #-s ${LOGICAL_ENV}-${APPNAME}-appvar
53
53
jobs :
54
54
# Build & Deploy against development backend rera212
55
55
" build-dev " :
56
56
<< : *default
57
57
environment :
58
58
DEPLOY_ENV : " DEV"
59
- LOGICAL_ENV : " dev"
59
+ LOGICAL_ENV : " dev"
60
+ APPNAME : " lambda-member-v5user-skill-sync"
60
61
# deploy app
61
62
steps : *build_steps
62
63
65
66
<< : *default
66
67
environment :
67
68
DEPLOY_ENV : " PROD"
68
- LOGICAL_ENV : " prod"
69
+ LOGICAL_ENV : " prod"
70
+ APPNAME : " lambda-member-v5user-skill-sync"
69
71
# deploy app
70
72
steps : *build_steps
71
73
@@ -75,14 +77,14 @@ workflows:
75
77
jobs :
76
78
# Development builds are executed on "develop" branch only.
77
79
- " build-dev " :
78
- context : org-global
80
+ context : org-global
79
81
filters :
80
82
branches :
81
83
only :
82
84
- develop
83
85
# production builds are executed on "master" branch only.
84
86
- " build-prod " :
85
- context : org-global
87
+ context : org-global
86
88
filters :
87
89
branches :
88
90
only :
0 commit comments