/
.gitlab-ci.yml
59 lines (55 loc) · 1.21 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
variables:
CHART_DIR: charts
DEPLOY_PATH: https://files.fein-aachen.org/
DEPLOY_URL: https://packages.fein-aachen.org/helm/charts
DEPLOY_USER: webdav
DEPLOY_PASS: changme
stages:
- test
- package
- deploy
lint:
image: registry.git.rwth-aachen.de/acs/internal/cloud/kubernetes/deployment
stage: test
before_script:
- helm version
script:
- helm lint ${CHART_DIR}/*
tags:
- docker
repo:
image: registry.git.rwth-aachen.de/acs/internal/cloud/kubernetes/deployment
stage: package
script:
- mkdir -p ./public
- wget ${DEPLOY_URL}/index.yaml -O old-index.yaml
- helm package
--destination ./public
${CHART_DIR}/*
- helm repo index
--url ${DEPLOY_URL}
--merge old-index.yaml ./public
artifacts:
paths:
- public
only:
- master
tags:
- docker
upload:
stage: deploy
image:
name: rclone/rclone:1.62
entrypoint: [""]
before_script:
- rclone config create fein webdav url ${DEPLOY_PATH} vendor other user ${DEPLOY_USER} pass ${DEPLOY_PASS}
- rclone config show
script:
- rclone copy -P ./public fein:packages/helm/charts
- rclone copy -P ./doc/pictures/logos fein:packages/helm/icons
dependencies:
- repo
tags:
- docker
only:
- master