File tree Expand file tree Collapse file tree 2 files changed +37
-3
lines changed Expand file tree Collapse file tree 2 files changed +37
-3
lines changed Original file line number Diff line number Diff line change 43
43
- run :
44
44
name : Set env variables
45
45
command : echo 'export VERSION=$(echo $CIRCLE_SHA1 | cut -c -7)' >> $BASH_ENV
46
+ - run :
47
+ name : build qa
48
+ command : REACT_APP_NODE_ENV=QA yarn build:qa
46
49
- run :
47
50
name : build staging
48
51
command : REACT_APP_NODE_ENV=STAGING yarn build:staging
@@ -52,15 +55,37 @@ jobs:
52
55
- persist_to_workspace :
53
56
root : .
54
57
paths :
58
+ - qa
55
59
- staging
56
60
- production
57
61
62
+ deploy_qa :
63
+ docker :
64
+ - image : circleci/python:3.6-jessie
65
+ working_directory : ~/deploy
66
+ environment :
67
+ PUBLIC_URL : https://forms.qa.codeyourfuture.io
68
+ steps :
69
+ - attach_workspace :
70
+ at : .
71
+ - run :
72
+ name : Set env variables
73
+ command : echo 'export VERSION=$(echo $CIRCLE_SHA1 | cut -c -7)' >> $BASH_ENV
74
+ - run :
75
+ name : Install awscli
76
+ command : sudo pip install awscli
77
+ - s3deploy :
78
+ dir : qa
79
+ to : ' forms.qa.codeyourfuture.io'
80
+ cf_distribution_id : E2VFUDC8YCDBKS
81
+
82
+
58
83
deploy_staging :
59
84
docker :
60
85
- image : circleci/python:3.6-jessie
61
86
working_directory : ~/deploy
62
87
environment :
63
- PUBLIC_URL : https://staging. forms.codeyourfuture.io
88
+ PUBLIC_URL : https://forms.staging .codeyourfuture.io
64
89
steps :
65
90
- attach_workspace :
66
91
at : .
72
97
command : sudo pip install awscli
73
98
- s3deploy :
74
99
dir : staging
75
- to : ' staging. forms.codeyourfuture.io'
76
- cf_distribution_id : E3MJAA9E60TZUB
100
+ to : ' forms.staging .codeyourfuture.io'
101
+ cf_distribution_id : E1SJFMKKCNFUGI
77
102
78
103
deploy_production :
79
104
docker :
@@ -101,6 +126,14 @@ workflows:
101
126
jobs :
102
127
- build :
103
128
context : build
129
+ - deploy_qa :
130
+ context : deployments_qa
131
+ requires :
132
+ - build
133
+ filters :
134
+ branches :
135
+ only :
136
+ - qa
104
137
- deploy_staging :
105
138
context : deployments_staging
106
139
requires :
Original file line number Diff line number Diff line change 34
34
"scripts" : {
35
35
"start" : " REACT_APP_NODE_ENV=LOCAL react-scripts start" ,
36
36
"build" : " react-scripts build && yarn run delete-maps" ,
37
+ "build:qa" : " REACT_APP_NODE_ENV=QA react-scripts build && yarn run delete-maps && mv build qa" ,
37
38
"build:staging" : " REACT_APP_NODE_ENV=STAGING react-scripts build && yarn run delete-maps && mv build staging" ,
38
39
"build:production" : " REACT_APP_NODE_ENV=PRODUCTION react-scripts build && yarn run delete-maps && mv build production" ,
39
40
"delete-maps" : " yarn run delete-map-files && yarn run delete-references-to-map-files" ,
You can’t perform that action at this time.
0 commit comments