From 4dbb01358df901085ca8e82091779024c4bba493 Mon Sep 17 00:00:00 2001 From: Anbraten Date: Fri, 12 May 2023 18:26:36 +0200 Subject: [PATCH] Improve ci workflow (#31) --- .woodpecker.yml | 17 ++++++++++------- Chart.lock | 8 ++++---- Chart.yaml | 6 +++--- charts/agent/Chart.yaml | 2 +- charts/server/Chart.yaml | 2 +- 5 files changed, 19 insertions(+), 16 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e27f1201..99f8d593 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -10,16 +10,20 @@ pipeline: commands: - helm lint --with-subcharts - release: + pack-chart: image: quay.io/helmpack/chart-releaser:v1.5.0 - secrets: - - source: github_token - target: CR_TOKEN commands: - git config --global user.email "woodpecker-bot@obermui.de" - git config --global user.name "woodpecker-bot" - mkdir -p .cr-index - cr package . + + release-chart: + image: quay.io/helmpack/chart-releaser:v1.5.0 + secrets: + - source: github_token + target: CR_TOKEN + commands: - cr upload --owner woodpecker-ci --git-repo woodpecker-ci.github.io --release-name-template "helm-{{ .Name }}-{{ .Version }}" - git clone https://github.com/woodpecker-ci/woodpecker-ci.github.io.git - cd woodpecker-ci.github.io/ && cr index --owner woodpecker-ci --git-repo woodpecker-ci.github.io --pages-branch master --package-path ../.cr-release-packages --index-path ../.cr-index/index.yaml --charts-repo https://woodpecker-ci.org --push --release-name-template "helm-{{ .Name }}-{{ .Version }}" @@ -30,10 +34,9 @@ pipeline: image: jnorwood/helm-docs:v1.11.0 commands: - helm-docs -t README.md.gotmpl - when: - - event: tag + - cat README.md - push-updated-readme: + push-readme: image: appleboy/drone-git-push settings: remote: ssh://git@github.com/woodpecker-ci/helm.git diff --git a/Chart.lock b/Chart.lock index acf0a5e9..0e37b996 100644 --- a/Chart.lock +++ b/Chart.lock @@ -1,9 +1,9 @@ dependencies: - name: server repository: "" - version: 0.1.3 + version: 0.1.4 - name: agent repository: "" - version: 0.1.3 -digest: sha256:2459ccd528f00ae48c1a0c9d3b499c19bc042d7b1a0f7a8e2de5346eef81fc32 -generated: "2023-05-12T18:15:46.87196402+02:00" + version: 0.1.4 +digest: sha256:c2f31e23a10e3c0f29c2307d0d7a4ed96ffea3fec5334bc57acace545f7602d9 +generated: "2023-05-12T18:20:08.013880236+02:00" diff --git a/Chart.yaml b/Chart.yaml index d2bdf8ce..4798d3cf 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: woodpecker description: A Helm chart for Woodpecker CI type: application -version: 0.1.3 +version: 0.1.4 appVersion: "v0.15.9" home: https://woodpecker-ci.org/ icon: https://avatars.githubusercontent.com/u/84780935?s=200&v=4 @@ -26,8 +26,8 @@ sources: dependencies: - name: server - version: "0.1.3" + version: "0.1.4" condition: server.enabled - name: agent - version: "0.1.3" + version: "0.1.4" condition: agent.enabled diff --git a/charts/agent/Chart.yaml b/charts/agent/Chart.yaml index 086f0e80..3ab0d8e1 100644 --- a/charts/agent/Chart.yaml +++ b/charts/agent/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: agent description: A Helm chart for the Woodpecker agent type: application -version: 0.1.3 +version: 0.1.4 appVersion: "v0.15.9" home: https://woodpecker-ci.org/ icon: https://avatars.githubusercontent.com/u/84780935?s=200&v=4 diff --git a/charts/server/Chart.yaml b/charts/server/Chart.yaml index 82938fc4..02280439 100644 --- a/charts/server/Chart.yaml +++ b/charts/server/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: server description: A Helm chart for the Woodpecker server type: application -version: 0.1.3 +version: 0.1.4 appVersion: "v0.15.9" home: https://woodpecker-ci.org/ icon: https://avatars.githubusercontent.com/u/84780935?s=200&v=4