This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml.bak
110 lines (99 loc) · 2.03 KB
/
.gitlab-ci.yml.bak
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
image: alpine:latest
variables:
DOCKER_DRIVER: overlay2
stages:
- build
- provision
- test
- release
- deploy
- performance
build:
image: docker:stable
variables:
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
services:
- docker:dind
cache:
paths:
- /var/www/vendor/
- /root/.composer/
stage: build
script:
- sh ./scripts/build/build.sh
test_backend:
image: kiwigrid/gcloud-kubectl-helm:2.13.1-239.0.0-94
stage: test
script:
- helm version
- sh ./scripts/test/test.sh
- echo "Running backend tests"
environment:
name: test/$CI_COMMIT_REF_NAME
url: https://$CI_ENVIRONMENT_SLUG-api.powerstack.dev
test_frontend:
stage: test
script:
- echo "Running tests"
release:
stage: release
script:
- sh ./scripts/release/release.sh
deploy_review:
stage: deploy
script:
- sh ./scripts/deploy/deploy.sh
- echo "Deploy a review app"
environment:
name: review/$CI_COMMIT_REF_NAME
url: https://$CI_ENVIRONMENT_SLUG-api.powerstack.dev
only:
- branches
except:
- master
deploy_staging:
before_script:
- helm init --client-only
- helm repo add stable https://kubernetes-charts.storage.googleapis.com/
- helm repo add incubator https://kubernetes-charts-incubator.storage.googleapis.com/
- helm repo update
stage: deploy
script:
- sh ./scripts/deploy/deploy.sh
environment:
name: staging
url: https://staging-api.powerstack.dev
only:
- master
deploy_prod:
stage: deploy
script:
- echo "Deploy to production server"
environment:
name: production
url: https://content-hub.powerstack.dev
when: manual
only:
- master
performance:
stage: performance
image: docker:stable
allow_failure: true
services:
- docker:stable-dind
script:
- setup_docker
- performance
artifacts:
paths:
- performance.json
- sitespeed-results/
only:
refs:
- branches
- tags
kubernetes: active
except:
variables:
- $PERFORMANCE_DISABLED