mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-22 18:01:02 +00:00
parent
9feb6be9f2
commit
17fd76b23f
2 changed files with 21 additions and 5 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -42,3 +42,7 @@ server/swagger/files/*.json
|
||||||
server/swagger/swagger_gen.go
|
server/swagger/swagger_gen.go
|
||||||
|
|
||||||
docs/venv
|
docs/venv
|
||||||
|
|
||||||
|
# helm charts
|
||||||
|
.cr-index/
|
||||||
|
.cr-release-packages/
|
||||||
|
|
|
@ -11,7 +11,10 @@ pipeline:
|
||||||
- cat charts/woodpecker-agent/Chart.yaml
|
- cat charts/woodpecker-agent/Chart.yaml
|
||||||
- cat charts/woodpecker-server/Chart.yaml
|
- cat charts/woodpecker-server/Chart.yaml
|
||||||
when:
|
when:
|
||||||
path: "charts/**"
|
path:
|
||||||
|
include:
|
||||||
|
- "charts/**"
|
||||||
|
- ".woodpecker/helm.yml"
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
image: alpine/helm:3.5.3
|
image: alpine/helm:3.5.3
|
||||||
|
@ -19,7 +22,10 @@ pipeline:
|
||||||
- helm lint charts/woodpecker-agent/
|
- helm lint charts/woodpecker-agent/
|
||||||
- helm lint charts/woodpecker-server/
|
- helm lint charts/woodpecker-server/
|
||||||
when:
|
when:
|
||||||
path: "charts/**"
|
path:
|
||||||
|
include:
|
||||||
|
- "charts/**"
|
||||||
|
- ".woodpecker/helm.yml"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
image: quay.io/helmpack/chart-releaser:v1.2.1
|
image: quay.io/helmpack/chart-releaser:v1.2.1
|
||||||
|
@ -27,11 +33,17 @@ pipeline:
|
||||||
- source: github_token
|
- source: github_token
|
||||||
target: CR_TOKEN
|
target: CR_TOKEN
|
||||||
commands:
|
commands:
|
||||||
|
- git config --global user.email "woodpecker-bot@obermui.de"
|
||||||
|
- git config --global user.name "woodpecker-bot"
|
||||||
- mkdir -p .cr-index
|
- mkdir -p .cr-index
|
||||||
- cr package charts/woodpecker-server
|
- cr package charts/woodpecker-server
|
||||||
- cr package charts/woodpecker-agent
|
- cr package charts/woodpecker-agent
|
||||||
- cr upload --owner woodpecker-ci --git-repo woodpecker-ci.github.io --release-name-template "helm-{{ .Name }}-{{ .Version }}"
|
- cr upload --token ${CR_TOKEN} --owner woodpecker-ci --git-repo woodpecker-ci.github.io --release-name-template "helm-{{ .Name }}-{{ .Version }}"
|
||||||
- cr index --owner woodpecker-ci --git-repo woodpecker-ci.github.io --pages-branch main --charts-repo https://woodpecker-ci.org --push --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 --token ${CR_TOKEN} --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 }}"
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
path: "charts/**"
|
path:
|
||||||
|
include:
|
||||||
|
- "charts/**"
|
||||||
|
- ".woodpecker/helm.yml"
|
||||||
|
|
Loading…
Reference in a new issue