-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
45 lines (42 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
39
40
41
42
43
44
45
stages:
- init
- package
- upload
dependencies:
stage: init
image:
name: alpine/helm:3.7.2
entrypoint: ["/bin/sh", "-c"]
script:
- helm repo add bitnami https://charts.bitnami.com/bitnami
- helm dependencies build
only:
variables:
- $CI_COMMIT_TAG
artifacts:
paths:
- charts/
package:
stage: package
image:
name: alpine/helm:3.7.2
entrypoint: ["/bin/sh", "-c"]
script:
- helm package .
only:
variables:
- $CI_COMMIT_TAG
artifacts:
paths:
- horizon-*.tgz
upload:
stage: upload
image:
name: curlimages/curl:8.00.1
entrypoint: ["/bin/sh", "-c"]
script:
- PACKAGE="$(find . -type f -name 'horizon-*.tgz' -maxdepth 1 | head -n 1)"
- curl -F file=@$PACKAGE --user "$NEXUS_USERNAME:$NEXUS_PASSWORD" --fail https://repo.evertrust.io/service/rest/v1/components?repository=charts
only:
variables:
- $CI_COMMIT_TAG