forked from passbolt/charts-passbolt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
38 lines (35 loc) · 935 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
stages:
- test
- deploy
- publish
lint Helm Charts:
image:
name: registry.gitlab.com/passbolt/passbolt-ci-docker-images/helm:latest
entrypoint: ["/bin/sh", "-c"]
stage: test
script:
- helm dependency update
- helm lint .
test Helm Charts:
image:
name: registry.gitlab.com/passbolt/passbolt-ci-docker-images/helm:latest
entrypoint: ["/bin/sh", "-c"]
stage: test
script:
- helm dependency update
- helm plugin install https://github.com/quintush/helm-unittest
- helm unittest --color -d .
publish:
stage: publish
image: registry.gitlab.com/passbolt/passbolt-ci-docker-images/helm:latest
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