garage/.woodpecker/helm.yaml

38 lines
1.2 KiB
YAML
Raw Permalink Normal View History

steps:
helm:
when:
- event: pull_request
branch: main-v2
- event: push
branch: main-v2
image: alpine/helm:4.1.1
environment:
2026-02-16 19:50:09 -08:00
chart_dir: script/helm/garage
chart_name: garage
registry_host: codeberg.org
2026-02-16 21:37:41 -08:00
registry_user: ${CI_REPO_OWNER}
registry_path: ${CI_REPO}
2026-02-16 19:50:09 -08:00
# To create registry_password:
# 1. Go to https://codeberg.org/user/settings/applications.
# 2. Create a token with these settings:
# - Token name: https://git.deuxfleurs.fr/3uzbcqje/garage/src/branch/main-v2/.woodpecker/helm.yaml
# - Set package permission to "Read and write".
# 3. Click "Generate token".
# 4. Copy the token.
# 5. Log into https://ci.codeberg.org.
# 6. Find your repo, and add a secret with these settings:
2026-02-16 19:50:09 -08:00
# - Name: registry_password
# - Value: <the token you copied earlier>
# 7. Click "Add secret".
2026-02-16 19:50:09 -08:00
registry_password:
from_secret: registry_password
commands:
- |
2026-02-16 21:26:44 -08:00
if [[ "${CI_PIPELINE_EVENT}" == "push" && "${CI_COMMIT_BRANCH}" == "${CI_REPO_DEFAULT_BRANCH}" ]]; then
./pipeline.sh push
else
./pipeline.sh
fi