gitlab-ci.yml 553 Bytes
Newer Older
torgiren's avatar
torgiren committed
1
2
3
4
5
6
7
---
stages:
  - upload

upload:
  stage: upload
  image:
8
    name: alpine/helm
torgiren's avatar
torgiren committed
9
10
11
  before_script:
    - apk add --no-cache ca-certificates git curl yq
    - helm plugin install https://github.com/chartmuseum/helm-push.git
torgiren's avatar
torgiren committed
12
    - helm repo add --username ${CI_REGISTRY_USER} --password ${CI_REGISTRY_PASSWORD} my-repo "${CI_API_V4_URL}/projects/6/packages/helm/stable"
torgiren's avatar
torgiren committed
13
14
15
16
17
    - helm repo update
  script:
    - export VERSION=$(git describe --tags)
    - sed -i "s/__VERSION__/$VERSION/" chart/Chart.yaml
    - helm lint chart
torgiren's avatar
torgiren committed
18
    - helm cm-push chart my-repo