This repository was archived by the owner on Mar 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +39
-21
lines changed Expand file tree Collapse file tree 3 files changed +39
-21
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ stages:
12
12
include :
13
13
- local : /gitlab-ci/documentation.yml
14
14
- local : /gitlab-ci/renovate.yml
15
- - local : /gitlab-ci/aws/cdk.yml
16
- # - local: /gitlab-ci/aws/cloudformation.yml
17
- # - local: /gitlab-ci/gcp/terraform.yml
15
+ - local : /gitlab-ci/aws/dev.yml
18
16
19
17
.Pytest :
20
18
image : python:3.8
Original file line number Diff line number Diff line change 1
1
# This template uses AWS CDK and AWS CLI to make infrastrcutre updates
2
2
# and to deploy changes to the frontend and backend
3
3
4
- workflow :
5
- rules :
6
- - if : ' $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
7
- when : always
8
- - if : ' $CI_COMMIT_BRANCH == "master"'
9
- when : always
10
-
11
- variables :
12
- ENVIRONMENT : dev
13
-
14
- .quasar build pwa :
4
+ .quasar_build_pwa :
15
5
image : node:10
16
6
stage : build
17
7
rules :
@@ -33,7 +23,7 @@ variables:
33
23
after_script :
34
24
- echo "Build Complete"
35
25
36
- cdk deploy :
26
+ .cdk_deploy :
37
27
image : docker:19.03.1
38
28
services :
39
29
- docker:19.03.5-dind
@@ -77,22 +67,22 @@ cdk deploy:
77
67
--count 1 \
78
68
--launch-type FARGATE
79
69
80
- collectstatic :
70
+ . collectstatic :
81
71
<< : *task
82
72
variables :
83
73
TASK_SUFFIX : collectstatic
84
74
85
- migrate :
75
+ . migrate :
86
76
<< : *task
87
77
variables :
88
78
TASK_SUFFIX : migrate
89
79
90
- createsuperuser :
80
+ . createsuperuser :
91
81
<< : *task
92
82
variables :
93
83
TASK_SUFFIX : create-superuser
94
84
95
- cdk destroy :
85
+ .cdk_destroy :
96
86
image : python:3.8
97
87
when : manual
98
88
stage : deploy
@@ -103,6 +93,6 @@ cdk destroy:
103
93
- pip3 install awscli
104
94
- pip3 install -e awscdk
105
95
script :
106
- # - aws s3 rb --force s3://${ENVIRONMENT}-${APP_NAME}-frontend
107
- # - aws s3 rb --force s3://${ENVIRONMENT}-${APP_NAME}-assets
96
+ - aws s3 rb --force s3://${ENVIRONMENT}-${APP_NAME}-frontend
97
+ - aws s3 rb --force s3://${ENVIRONMENT}-${APP_NAME}-assets
108
98
- cdk destroy --app awscdk/app.py --force
Original file line number Diff line number Diff line change
1
+ workflow :
2
+ rules :
3
+ - if : ' $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "master"'
4
+ when : always
5
+ - if : ' $CI_COMMIT_BRANCH == "master"'
6
+ when : always
7
+
8
+ include :
9
+ - local : /gitlab-ci/aws/cdk.yml
10
+
11
+ variables :
12
+ ENVIRONMENT : dev
13
+
14
+ quasar_build_pwa (dev) :
15
+ extends : .quasar_build_pwa
16
+
17
+ cdk_deploy (dev) :
18
+ extends : .cdk_deploy
19
+
20
+ collectstatic (dev) :
21
+ extends : .collectstatic
22
+
23
+ migrate (dev) :
24
+ extends : .migrate
25
+
26
+ createsuperuser (dev) :
27
+ extends : .createsuperuser
28
+
29
+ cdk_destroy (dev) :
30
+ extends : .cdk_destroy
You can’t perform that action at this time.
0 commit comments