Try drone
This commit is contained in:
parent
e60f35a6ae
commit
8a57b1ea0e
20
.drone.yml
20
.drone.yml
@ -6,20 +6,14 @@ kind: pipeline
|
||||
type: kubernetes
|
||||
name: Apply helmfile changes
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
- main
|
||||
event:
|
||||
- push
|
||||
|
||||
steps:
|
||||
- name: Publish the Helm chart
|
||||
image: alpine/helm
|
||||
- name: Diff helmfiles
|
||||
image: ghcr.io/helmfile/helmfile:canary
|
||||
environment:
|
||||
GITEA_TOKEN:
|
||||
from_secret: GITEA_TOKEN
|
||||
KUBECONFIG:
|
||||
from_secret: KUBECONFIG
|
||||
commands:
|
||||
- helm plugin install https://github.com/chartmuseum/helm-push
|
||||
- helm package chart -d chart-package
|
||||
- helm repo add --username allanger --password $GITEA_TOKEN allanger-charts https://git.badhouseplants.net/api/packages/allanger/helm
|
||||
- helm cm-push "./chart-package/$(ls chart-package)" allanger-charts
|
||||
- mkdir $HOME/.kube
|
||||
- echo $KUBECONFIG | base64 -d > $HOME/.kube/config
|
||||
- helmfile -e badhouseplants diff
|
||||
|
Reference in New Issue
Block a user