Skip to content

Commit

Permalink
move to new single repo
Browse files Browse the repository at this point in the history
  • Loading branch information
psych0d0g committed Dec 23, 2023
1 parent 73bc1a4 commit 018222a
Show file tree
Hide file tree
Showing 7 changed files with 147 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# helm ignore
charts
23 changes: 23 additions & 0 deletions .helmignore
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/
48 changes: 48 additions & 0 deletions .woodpecker/helm-release.yaml
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
24 changes: 24 additions & 0 deletions .woodpecker/helm-test.yaml
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
16 changes: 16 additions & 0 deletions .woodpecker/release-helper.yaml
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}
25 changes: 25 additions & 0 deletions .woodpecker/renovate.yaml
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}
9 changes: 9 additions & 0 deletions .woodpecker/renovate_config.json
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"]
}

0 comments on commit 018222a

Please sign in to comment.