diff --git a/.gitignore b/.gitignore index 22b7fa6..9ebaea1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ charts/ node_modules/ .DS_Store +tmp/ diff --git a/.helmignore b/.helmignore index fe6af29..35550f2 100644 --- a/.helmignore +++ b/.helmignore @@ -29,4 +29,6 @@ Makefile .markdownlintignore .markdownlint.yaml .drone.yml -CONTRIBUTING.md \ No newline at end of file +CONTRIBUTING.md +.woodpecker/ +tmp/ \ No newline at end of file diff --git a/.woodpecker/test.yml b/.woodpecker/lint.yml similarity index 93% rename from .woodpecker/test.yml rename to .woodpecker/lint.yml index c91197b..12279f6 100644 --- a/.woodpecker/test.yml +++ b/.woodpecker/lint.yml @@ -1,10 +1,9 @@ platform: linux/amd64 when: - event: [ push, pull_request ] branch: exclude: - - main + - pages pipeline: helm-lint: diff --git a/.woodpecker/release-version.yml b/.woodpecker/release-version.yml new file mode 100644 index 0000000..1117567 --- /dev/null +++ b/.woodpecker/release-version.yml @@ -0,0 +1,25 @@ +platform: linux/amd64 + +depends_on: + - lint + +when: + tag: v* + +pipeline: + generate-chart: + image: alpine:3.17 + pull: true + commands: + - apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing helm + - apk add --no-cache curl + - helm dependency update + - rm -rf tmp/ + - helm package --version "${CI_COMMIT_TAG##v}" -d tmp/ ./ + - git fetch origin + - git checkout pages + - helm repo index tmp/ --merge index.yaml + - mv -f tmp/* . + - git add -A + - 'git commit -m "chore: update charts to ${CI_COMMIT_TAG}"' + - git push origin pages