37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
when:
|
|
- event: push
|
|
branch: main
|
|
|
|
steps:
|
|
- name: release
|
|
image: alpine@sha256:25109184c71bdad752c8312a8623239686a9a2071e8825f20acb8f2198c3f659
|
|
commands:
|
|
- apk add --no-cache git
|
|
- ./scripts/release.sh
|
|
environment:
|
|
GITEA_REPO_TOKEN:
|
|
from_secret: gitea_repo_token
|
|
|
|
- name: docker
|
|
image: woodpeckerci/plugin-kaniko@sha256:b88802ba66af95ee28a8ffde08715631ec2892e024b2c74e90e19f73a5c2c602
|
|
depends_on: [release]
|
|
settings:
|
|
repo: ${CI_REPO_OWNER}/${CI_REPO_NAME}
|
|
registry: git.keligrubb.com
|
|
username: ${CI_REPO_OWNER}
|
|
password:
|
|
from_secret: gitea_registry_token
|
|
single-snapshot: true
|
|
cleanup: true
|
|
|
|
- name: helm
|
|
image: alpine/helm@sha256:b5c85b997d83e89d9e8ff9215a14b03864274143981af45eb3fe729cdf782c73
|
|
depends_on: [release]
|
|
environment:
|
|
GITEA_REGISTRY_TOKEN:
|
|
from_secret: gitea_registry_token
|
|
commands:
|
|
- apk add --no-cache curl
|
|
- helm package helm/kestrelos
|
|
- curl -sf -u $CI_REPO_OWNER:$GITEA_REGISTRY_TOKEN -X POST --upload-file kestrelos-*.tgz https://git.keligrubb.com/api/packages/$CI_REPO_OWNER/helm/api/charts
|