-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
53 lines (41 loc) · 951 Bytes
/
.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
image: node:16-alpine
stages:
- build
- deploy staging
- test staging
build website:
stage: build
before_script:
- npm install --force
script:
- npm run build
artifacts:
paths:
- dist/
.deploy:
image:
name: amazon/aws-cli:2.9.1
entrypoint: [""]
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
script:
- aws --version
- aws s3 sync ./dist/mdb-angular-ui-kit-free s3://$AWS_S3_BUCKET --delete
.testing:
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
script:
- wget $CI_ENVIRONMENT_URL
deploy to staging:
stage: deploy staging
environment: staging1
extends: .deploy
staging tests:
stage: test staging
environment: staging
extends: .testing
.deploy to production:
stage: deploy production
when: manual
environment: production
extends: .deploy