This repository has been archived on 2026-07-18. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
opencloud-oidc-webfinger-pr…/.woodpecker/release-publish.yml
T

58 lines
1.6 KiB
YAML

when:
- event: push
branch: [main]
path:
include:
- 'helm/**'
- event: tag
ref: "refs/tags/v*"
steps:
- name: release
image: node:24-alpine
environment:
GITEA_TOKEN:
from_secret: RELEASE_TOKEN
GITEA_USERNAME:
from_secret: RELEASE_USERNAME
GITEA_URL: ${CI_FORGE_URL}
commands:
- apk add --no-cache git
- git config --global credential.helper store
- echo "https://$${GITEA_USERNAME}:$${GITEA_TOKEN}@git.barbiric.io" > ~/.git-credentials
- npm install -g semantic-release @semantic-release/commit-analyzer @semantic-release/release-notes-generator @semantic-release/changelog @semantic-release/git @semantic-release/exec @forge-for-gitea/semantic-release-gitea
- npx semantic-release
when:
event: push
branch: main
- name: package-charts
image: quay.io/helmpack/chart-testing:v3.11.0
commands:
- mkdir -p .cr-release-packages
- |
helm package helm -d .cr-release-packages
when:
event: tag
- name: publish-charts
image: quay.io/helmpack/chart-testing:v3.11.0
environment:
GITEA_USERNAME:
from_secret: RELEASE_USERNAME
GITEA_TOKEN:
from_secret: RELEASE_TOKEN
commands:
- |
for pkg in .cr-release-packages/*.tgz; do
if [ -f "$pkg" ]; then
echo "Publishing $pkg to Gitea..."
curl -s -f \
-u "$${GITEA_USERNAME}:$${GITEA_TOKEN}" \
-X POST \
--upload-file "$pkg" \
"${CI_FORGE_URL}/api/packages/${CI_REPO_OWNER}/helm/api/charts"
fi
done
when:
event: tag