-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
147 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# helm ignore | ||
charts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Patterns to ignore when building packages. | ||
# This supports shell glob matching, relative path matching, and | ||
# negation (prefixed with !). Only one pattern per line. | ||
.DS_Store | ||
# Common VCS dirs | ||
.git/ | ||
.gitignore | ||
.bzr/ | ||
.bzrignore | ||
.hg/ | ||
.hgignore | ||
.svn/ | ||
# Common backup files | ||
*.swp | ||
*.bak | ||
*.tmp | ||
*.orig | ||
*~ | ||
# Various IDEs | ||
.project | ||
.idea/ | ||
*.tmproj | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
depends_on: | ||
- helm-test | ||
|
||
when: | ||
- event: tag | ||
- event: pull_request | ||
|
||
steps: | ||
pack-chart: | ||
image: quay.io/helmpack/chart-releaser:v1.6.1 | ||
commands: | ||
- apk --no-cache add helm | ||
- helm repo add bitnami https://charts.bitnami.com/bitnami | ||
- mkdir -p .cr-index | ||
- cr package chart | ||
|
||
release-chart: | ||
image: quay.io/helmpack/chart-releaser:v1.6.1 | ||
secrets: | ||
- source: github_token | ||
target: CR_TOKEN | ||
commands: | ||
- git config --global user.email "[email protected]" | ||
- git config --global user.name "woodpecker-bot" | ||
- cr upload --skip-existing --owner CrystalNET-org --git-repo helm.crystalnet.org --release-name-template "helm-{{ .Name }}-{{ .Version }}" | ||
- git clone https://github.com/CrystalNET-org/helm.crystalnet.org.git | ||
- cd helm.crystalnet.org/ | ||
- cr index --owner CrystalNET-org --git-repo helm.crystalnet.org --pages-branch main --package-path ../.cr-release-packages --index-path ../.cr-index/index.yaml --push --release-name-template "helm-{{ .Name }}-{{ .Version }}" | ||
- cd .. | ||
- rm -rf helm.crystalnet.org/ | ||
- git reset --hard | ||
when: | ||
- event: tag | ||
|
||
release-chart-to-harbor: | ||
image: harbor.crystalnet.org/dockerhub-proxy/alpine/helm:3.13.3 | ||
secrets: | ||
- source: harbor_helmrepo_user | ||
target: HELMREPO_USER | ||
- source: harbor_helmrepo_password | ||
target: HELMREPO_PASSWORD | ||
commands: | ||
- helm registry login -u $${HELMREPO_USER} -p $${HELMREPO_PASSWORD} harbor.crystalnet.org/charts | ||
- helm dependencies update chart | ||
- helm package chart | ||
- helm push *.tgz oci://harbor.crystalnet.org/charts | ||
when: | ||
- event: tag |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
when: | ||
- event: tag | ||
- event: push | ||
branch: ${CI_REPO_DEFAULT_BRANCH} | ||
- event: pull_request | ||
|
||
steps: | ||
lint: | ||
image: harbor.crystalnet.org/dockerhub-proxy/alpine/helm:3.13.3 | ||
commands: | ||
- helm dependencies update chart | ||
- helm lint --with-subcharts chart | ||
|
||
test-chart: | ||
image: quay.io/helmpack/chart-testing:v3.10.1 | ||
commands: | ||
- apk --no-cache add helm | ||
- helm repo add bitnami https://charts.bitnami.com/bitnami | ||
# Needed for `ct` to check which chart was edited. See https://github.com/woodpecker-ci/helm/pull/56#issuecomment-1676343140 | ||
- git fetch origin main --unshallow --no-tags || true | ||
- git fetch origin main --no-tags || true | ||
- git branch main origin/main || true | ||
- ct list-changed --config ct.yaml chart | ||
- ct lint --config ct.yaml chart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
steps: | ||
release-helper: | ||
image: harbor.crystalnet.org/library/plugin-ready-release-helm:1.0.3 | ||
pull: true | ||
settings: | ||
release_branch: ${CI_REPO_DEFAULT_BRANCH} | ||
forge_type: github | ||
git_email: [email protected] | ||
github_token: | ||
from_secret: GITHUB_TOKEN | ||
|
||
when: | ||
- event: push | ||
branch: ${CI_REPO_DEFAULT_BRANCH} | ||
- event: manual | ||
branch: ${CI_REPO_DEFAULT_BRANCH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
clone: | ||
git: | ||
image: harbor.crystalnet.org/dockerhub-proxy/woodpeckerci/plugin-git:2.4.0 | ||
settings: | ||
partial: false | ||
depth: 1 | ||
|
||
steps: | ||
renovate: | ||
image: harbor.crystalnet.org/dockerhub-proxy/renovate/renovate:37.107.0 | ||
secrets: | ||
- github_com_token | ||
- renovate_token | ||
environment: | ||
- RENOVATE_CONFIG_FILE=.woodpecker/renovate_config.json | ||
- RENOVATE_DRY_RUN=false | ||
- RENOVATE_ENDPOINT=https://api.github.com | ||
- SHELL=/bin/bash | ||
commands: | ||
- LOG_LEVEL=debug renovate --ignore-pr-author true | ||
when: | ||
- event: cron | ||
branch: ${CI_REPO_DEFAULT_BRANCH} | ||
- event: manual | ||
branch: ${CI_REPO_DEFAULT_BRANCH} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"branchPrefix": "renovate/", | ||
"dependencyDashboard": true, | ||
"dependencyDashboardTitle": "Dependency Dashboard", | ||
"gitAuthor": "Renovate Bot <[email protected]>", | ||
"platform": "github", | ||
"repositories": ["CrystalNET-org/helm-romm"] | ||
} |