minor: add a new release system (#3)
All checks were successful
ci/woodpecker/push/push Pipeline was successful
All checks were successful
ci/woodpecker/push/push Pipeline was successful
# Changes * package and release helm charts for the project * configure a new release system based of semver * add changelog entries via keep-a-changelog formatting * add gitea releases Co-authored-by: Madison Grubb <madison@elastiflow.com> Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
@@ -3,14 +3,34 @@ when:
|
||||
branch: main
|
||||
|
||||
steps:
|
||||
- name: docker-build-push
|
||||
- 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
|
||||
tags: latest,${CI_COMMIT_SHA:0:7}
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user