helm-charts/.drone.yml
2023-06-14 20:25:51 -07:00

22 lines
654 B
YAML

kind: pipeline
name: publish
type: docker
platform:
os: linux
arch: arm64
steps:
- name: step1
image: alpine
commands:
- apk add perl git
- git show --name-only --pretty="format:" | grep '^charts'
- git show --name-only --pretty="format:" | grep '^charts' | perl -pe 's:^([^/]*?/[^/]*?)/.*:$1:'
- git show --name-only --pretty="format:" | grep '^charts' | perl -pe 's:^([^/]*?/[^/]*?)/.*:$1:' | sort | uniq
- changed_charts=$(git show --name-only --pretty="format:" | grep '^charts' | perl -pe 's:^([^/]*?/[^/]*?)/.*:$1:' | sort | uniq)
- echo $changed_charts
image_pull_secrets:
- dockerconfigjson