37 lines
949 B
YAML
37 lines
949 B
YAML
when:
|
|
- event: push
|
|
branch: main
|
|
|
|
steps:
|
|
- name: release
|
|
image: alpine
|
|
commands:
|
|
- apk add --no-cache git
|
|
- ./scripts/release.sh
|
|
environment:
|
|
GITEA_REPO_TOKEN:
|
|
from_secret: gitea_repo_token
|
|
|
|
- name: docker
|
|
image: woodpeckerci/plugin-kaniko
|
|
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
|
|
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
|