forked from encircle360-oss/outline-helm-chart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
39 lines (35 loc) · 893 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
stages:
- lint
- package
- upload
lint:
image:
name: alpine/helm:3.6.3
entrypoint: ["/bin/sh", "-c"]
stage: lint
script:
- 'helm lint .'
package:
image:
name: alpine/helm:3.6.3
entrypoint: ["/bin/sh", "-c"]
stage: package
script:
- 'helm package -u -d build/ .'
artifacts:
paths:
- build/
upload-beta:
except:
- main
image: curlimages/curl:latest
stage: upload
script:
- 'curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@build/outline-0.1.0.tgz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/beta/charts"'
upload-stable:
only:
- main
image: curlimages/curl:latest
stage: upload
script:
- 'curl --request POST --user gitlab-ci-token:$CI_JOB_TOKEN --form "chart=@build/outline-0.1.0.tgz" "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/helm/api/stable/charts"'