Skip to content
This repository was archived by the owner on Mar 27, 2023. It is now read-only.

Commit 10ef506

Browse files
committed
removed sync s3 jobs in cdk.yml gitlab ci job
1 parent 274a572 commit 10ef506

File tree

1 file changed

+4
-33
lines changed

1 file changed

+4
-33
lines changed

gitlab-ci/aws/cdk.yml

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
variables:
55
ENVIRONMENT: dev
66

7-
.Build Quasar PWA Assets:
7+
Build Quasar PWA Assets:
88
image: node:10
99
stage: build
1010
only:
@@ -25,35 +25,6 @@ variables:
2525
after_script:
2626
- echo "Build Complete"
2727

28-
.Sync Quasar PWA Assets:
29-
image: python:3.8
30-
stage: deploy
31-
only:
32-
- master
33-
dependencies:
34-
- "Build Quasar PWA Assets"
35-
before_script:
36-
- cd quasar
37-
- pip install awscli
38-
- aws iam get-user
39-
script:
40-
- |
41-
aws s3 sync \
42-
--delete \
43-
--exclude index.html \
44-
--exclude service-worker.js \
45-
./dist/pwa/ s3://${ENVIRONMENT}-${APP_NAME}-frontend/
46-
- |
47-
aws s3 cp \
48-
--cache-control 'max-age=0' \
49-
./dist/pwa/index.html s3://${ENVIRONMENT}-${APP_NAME}-frontend/
50-
- |
51-
aws s3 cp \
52-
--cache-control 'max-age=0' \
53-
./dist/pwa/service-worker.js s3://${ENVIRONMENT}-${APP_NAME}-frontend/
54-
after_script:
55-
- echo "Deploy frontend complete"
56-
5728
cdk deploy:
5829
image: docker:19.03.1
5930
services:
@@ -77,7 +48,7 @@ cdk deploy:
7748
- cdk bootstrap aws://$AWS_ACCOUNT_ID/$AWS_DEFAULT_REGION
7849
- cdk deploy --require-approval never
7950

80-
collectstatic: &task
51+
.collectstatic: &task
8152
image: python:3.8
8253
stage: deploy
8354
only:
@@ -101,7 +72,7 @@ collectstatic: &task
10172
--network-configuration "awsvpcConfiguration={subnets=[${subnets}],assignPublicIp=ENABLED}" \
10273
--count 1 \
10374
--launch-type FARGATE
104-
migrate:
75+
.migrate:
10576
<<: *task
10677
script:
10778
- |
@@ -112,7 +83,7 @@ migrate:
11283
--count 1 \
11384
--launch-type FARGATE
11485
115-
createsuperuser:
86+
.createsuperuser:
11687
<<: *task
11788
script:
11889
- |

0 commit comments

Comments
 (0)