-
Notifications
You must be signed in to change notification settings - Fork 33
/
.gitlab-ci.yml
77 lines (68 loc) · 1.94 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
variables:
DOCKER_HOST: tcp://docker:2375
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: ""
services:
- name: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:dind
alias: docker
stages:
- test
- deploy
- publish
lint Helm Charts:
image:
name: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/alpine/helm
entrypoint: ["/bin/sh", "-c"]
stage: test
script:
- helm dependency update
- bash run_tests.sh --lint
test Helm Charts:
image:
name: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/alpine/helm
entrypoint: ["/bin/sh", "-c"]
stage: test
script:
- helm dependency update
- helm plugin install https://github.com/helm-unittest/helm-unittest --version 0.7.0
- bash run_tests.sh --unit
integration Tests Helm Charts Mariadb:
variables:
ROOTLESS: false
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:dind
script:
- |
apk update && apk add -U curl bash
sleep 10 # Wait for docker service
bash run_tests.sh --integration
integration Tests Helm Charts Mariadb Rootless:
variables:
ROOTLESS: true
extends: integration Tests Helm Charts Mariadb
integration Tests Helm Charts Postgresql:
variables:
ROOTLESS: false
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/docker:dind
script:
- |
apk update && apk add -U curl bash
sleep 10 # Wait for docker service
bash run_tests.sh --integration -d postgresql
integration Tests Helm Charts Postgresql Rootless:
variables:
ROOTLESS: true
extends: integration Tests Helm Charts Postgresql
publish:
stage: publish
image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/alpine/helm
variables:
REPO_BUCKET: "download.passbolt.com"
REPO_DIR: "charts"
CHART_NAME: "passbolt"
script:
- |
export GOOGLE_APPLICATION_CREDENTIALS="$BUCKET_SVC_ACC"
sh .gitlab-ci/scripts/bin/publishing.sh
rules:
- if: "$CI_COMMIT_TAG"
when: on_success