-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathpublish-charts.yml
More file actions
26 lines (24 loc) · 1 KB
/
Copy pathpublish-charts.yml
File metadata and controls
26 lines (24 loc) · 1 KB
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
platform: linux/amd64
labels:
type: exec
pipeline:
- name: publish-charts
image: bash
commands:
- export VERSION=$(sed 's#v##' <<< $CI_COMMIT_TAG)
- export IMAGE_TAG=$([ ! -z $CI_COMMIT_TAG ] && echo \"$VERSION\" || echo \"canary\")
- pip install -r requirements.txt
- python3 _scripts/dependency_update.py "oci://$DRYCC_REGISTRY/$([ -z $CI_COMMIT_TAG ] && echo charts-testing || echo charts)" "charts/workflow/Chart.yaml"
- helm dependency update charts/workflow
- helm package -u charts/$${CI_REPO_NAME} --version $([ -z $CI_COMMIT_TAG ] && echo 1.0.0 || echo $VERSION)
- echo $CONTAINER_PASSWORD | helm registry login $DRYCC_REGISTRY -u $CONTAINER_USERNAME --password-stdin
- helm push $${CI_REPO_NAME}-$([ -z $CI_COMMIT_TAG ] && echo 1.0.0 || echo $VERSION).tgz oci://$DRYCC_REGISTRY/$([ -z $CI_COMMIT_TAG ] && echo charts-testing || echo charts)
- bash _scripts/generate_cache.sh
secrets:
- drycc_registry
- container_username
- container_password
when:
event:
- tag
- push