1
1
version : 2
2
2
defaults : &defaults
3
3
docker :
4
- - image : cimg/python:3.11.0 -browsers
4
+ - image : cimg/python:3.12.1 -browsers
5
5
install_dependency : &install_dependency
6
6
name : Installation of build and deployment dependencies.
7
7
command : |
8
- sudo apt update
9
- sudo apt install jq
10
- sudo apt install python3-pip
11
- sudo pip3 install awscli --upgrade
12
- sudo pip3 install docker-compose
8
+ pip3 install awscli --upgrade
13
9
install_deploysuite : &install_deploysuite
14
10
name : Installation of install_deploysuite.
15
11
command : |
16
- git clone --branch v1.4.15 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
12
+ git clone --branch v1.4.17 https://github.com/topcoder-platform/tc-deploy-scripts ../buildscript
17
13
cp ./../buildscript/master_deploy.sh .
18
14
cp ./../buildscript/buildenv.sh .
19
15
cp ./../buildscript/awsconfiguration.sh .
@@ -23,38 +19,38 @@ restore_cache_settings_for_build: &restore_cache_settings_for_build
23
19
save_cache_settings : &save_cache_settings
24
20
key : docker-node-modules-{{ checksum "package-lock.json" }}
25
21
paths :
26
- - node_modules
22
+ - node_modules
27
23
28
24
builddeploy_steps : &builddeploy_steps
29
- - checkout
30
- - setup_remote_docker
31
- - run : *install_dependency
32
- - run : *install_deploysuite
33
- - restore_cache : *restore_cache_settings_for_build
34
- - run : ./build.sh ${APPNAME}
35
- - save_cache : *save_cache_settings
36
- - deploy :
37
- name : Running MasterScript.
38
- command : |
39
- ./awsconfiguration.sh $DEPLOY_ENV
40
- source awsenvconf
41
- ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
42
- source buildenvvar
43
- ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-global-informix-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
25
+ - checkout
26
+ - setup_remote_docker
27
+ - run : *install_dependency
28
+ - run : *install_deploysuite
29
+ - restore_cache : *restore_cache_settings_for_build
30
+ - run : ./build.sh ${APPNAME}
31
+ - save_cache : *save_cache_settings
32
+ - deploy :
33
+ name : Running MasterScript.
34
+ command : |
35
+ ./awsconfiguration.sh $DEPLOY_ENV
36
+ source awsenvconf
37
+ ./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-deployvar
38
+ source buildenvvar
39
+ ./master_deploy.sh -d ECS -e $DEPLOY_ENV -t latest -s ${LOGICAL_ENV}-global-appvar,${LOGICAL_ENV}-global-informix-appvar,${LOGICAL_ENV}-${APPNAME}-appvar -i ${APPNAME}
44
40
45
41
46
42
jobs :
47
43
# Build & Deploy against development backend
48
44
" build-dev " :
49
- << : *defaults
45
+ !!merge <<: *defaults
50
46
environment :
51
47
DEPLOY_ENV : " DEV"
52
48
LOGICAL_ENV : " dev"
53
49
APPNAME : " legacy-payment-processor"
54
50
steps : *builddeploy_steps
55
51
56
52
" build-prod " :
57
- << : *defaults
53
+ !!merge <<: *defaults
58
54
environment :
59
55
DEPLOY_ENV : " PROD"
60
56
LOGICAL_ENV : " prod"
@@ -65,18 +61,19 @@ workflows:
65
61
version : 2
66
62
build :
67
63
jobs :
68
- # Development builds are executed on "develop" branch only.
69
- - " build-dev " :
70
- context : org-global
71
- filters :
72
- branches :
73
- only :
74
- - develop
64
+ # Development builds are executed on "develop" branch only.
65
+ - " build-dev " :
66
+ context : org-global
67
+ filters :
68
+ branches :
69
+ only :
70
+ - develop
71
+ - TOPCROWD-PAYMENTS-FIX
75
72
76
- # Production builds are exectuted only on tagged commits to the
77
- # master branch.
78
- - " build-prod " :
79
- context : org-global
80
- filters :
81
- branches :
82
- only : master
73
+ # Production builds are exectuted only on tagged commits to the
74
+ # master branch.
75
+ - " build-prod " :
76
+ context : org-global
77
+ filters :
78
+ branches :
79
+ only : master
0 commit comments