-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
66 lines (58 loc) · 971 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
54
55
56
57
58
59
60
61
62
63
64
65
image: alpine:latest
stages:
- test
- build
- deploy
test:
stage: test
script: echo "Running tests"
build:
stage: build
script: echo "Building the app"
deploy_review:
stage: deploy
script:
- echo "Deploy a review app"
environment:
name: review/$CI_BUILD_REF_NAME
url: https://$CI_ENVIRONMENT_SLUG.nuppu._.naamio.cloud
only:
- branches
except:
- master
deploy_staging:
stage: deploy
script:
- echo "Deploy to staging server"
environment:
name: staging
url: https://staging.naamio.cloud/
only:
- master
artifacts:
paths:
- public
only:
- master
deploy_release:
stage: deploy
script:
- echo "Deploy to production server"
environment:
name: production
url: https://naamio.cloud/
artifacts:
paths:
- public
when: manual
only:
- release
pages:
script:
- echo "Deploying pages"
artifacts:
paths:
- public
when: manual
only:
- release