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

Commit b1a5883

Browse files
committed
added production environment, added gitlab ci environment key to cdk deploy job
1 parent ad4d16a commit b1a5883

File tree

3 files changed

+32
-4
lines changed

3 files changed

+32
-4
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ include:
1313
- local: /gitlab-ci/documentation.yml
1414
- local: /gitlab-ci/renovate.yml
1515
- local: /gitlab-ci/aws/dev.yml
16+
- local: /gitlab-ci/aws/app.yml
1617

1718
.Pytest:
1819
image: python:3.8

gitlab-ci/aws/app.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
workflow:
2+
rules:
3+
- if: $CI_COMMIT_TAG
4+
when: always
5+
6+
include:
7+
- local: /gitlab-ci/aws/cdk.yml
8+
9+
variables:
10+
ENVIRONMENT: app
11+
12+
quasar_build_pwa (app):
13+
extends: .quasar_build_pwa
14+
15+
cdk_deploy (app):
16+
extends: .cdk_deploy
17+
18+
collectstatic (app):
19+
extends: .collectstatic
20+
21+
migrate (app):
22+
extends: .migrate
23+
24+
createsuperuser (app):
25+
extends: .createsuperuser
26+
27+
cdk_destroy (app):
28+
extends: .cdk_destroy

gitlab-ci/aws/cdk.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
services:
2727
- docker:19.03.5-dind
2828
stage: deploy
29-
only:
30-
- master
29+
environment:
30+
name: ${ENVIRONMENT}-${APP_NAME}
31+
url: https://${ENVIRONMENT}.${DOMAIN_NAME}
3132
variables:
3233
ENVIRONMENT: dev
3334
DOCKER_TLS_CERTDIR: ""
@@ -43,8 +44,6 @@
4344
.base_task: &task
4445
image: python:3.8
4546
stage: deploy
46-
only:
47-
- master
4847
when: manual
4948
before_script:
5049
- pip install awscli

0 commit comments

Comments
 (0)