-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
61 lines (52 loc) · 1.6 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
stages:
- test
- build
- deploy
variables:
WEBSERVER_FOLDER_NAME: crisprcleanr_webapp
####################################################################################################
include:
- component: $CICD_COMPONENTS_PROJECT/lint_eslint@$CICD_COMPONENTS_COMMIT_REF
inputs:
stage: test
- component: $CICD_COMPONENTS_PROJECT/build_vite@$CICD_COMPONENTS_COMMIT_REF
inputs:
stage: build
- component: $CICD_COMPONENTS_PROJECT/build_vite@$CICD_COMPONENTS_COMMIT_REF
inputs:
stage: build
environment: staging
input_env_file: deploy.env
output_env_file: production.env
rules:
- if: $CI_COMMIT_BRANCH == 'staging'
when: always
- when: never
- component: $CICD_COMPONENTS_PROJECT/build_vite@$CICD_COMPONENTS_COMMIT_REF
inputs:
stage: build
environment: production
input_env_file: deploy.env
output_env_file: production.env
rules:
- if: $CI_COMMIT_BRANCH == 'production'
when: always
- when: never
- component: $CICD_COMPONENTS_PROJECT/deploy_to_static_webserver@$CICD_COMPONENTS_COMMIT_REF
inputs:
stage: deploy
folder_name: $WEBSERVER_FOLDER_NAME
environment: staging
rules:
- if: $CI_COMMIT_BRANCH == 'staging'
when: always
- when: never
- component: $CICD_COMPONENTS_PROJECT/deploy_to_static_webserver@$CICD_COMPONENTS_COMMIT_REF
inputs:
stage: deploy
folder_name: $WEBSERVER_FOLDER_NAME
environment: production
rules:
- if: $CI_COMMIT_BRANCH == 'production'
when: always
- when: never