helm-charts/.drone.yml
2023-06-14 20:42:13 -07:00

31 lines
1.1 KiB
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
- var1=$(git show --name-only --pretty="format:")
- echo "$var1"
# - var2=$(git show --name-only --pretty="format:" | grep '^charts')
# - echo "$var2"
- var3=$(git show --name-only --pretty="format:" | grep '^charts' | perl -pe 's:^([^/]*?/[^/]*?)/.*:$1:')
- echo "$var3"
# - var4=$(git show --name-only --pretty="format:" | grep '^charts' | perl -pe 's:^([^/]*?/[^/]*?)/.*:$1:' | sort)
# - echo "$var4"
- changed_charts=$(git show --name-only --pretty="format:" | grep '^charts' | perl -pe 's:^([^/]*?/[^/]*?)/.*:$1:' | sort | uniq)
- echo "$changed_charts"
- echo "This is after"
image_pull_secrets:
- dockerconfigjson