Added Helm chart and deployment
This commit is contained in:
parent
ef3421ff97
commit
5e879c2d4b
9 changed files with 335 additions and 1 deletions
|
@ -4,7 +4,7 @@ on:
|
|||
push:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
container:
|
||||
runs-on: docker
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
|
||||
|
@ -19,3 +19,22 @@ jobs:
|
|||
destinations: |
|
||||
docker.io/fleaz/shippinglabel:latest
|
||||
push: true
|
||||
helm:
|
||||
needs:
|
||||
- container
|
||||
runs-on: docker
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
- name: Setup k8s context
|
||||
run: |
|
||||
- echo "${{secrets.KUBE_API_CRT}}" > /tmp/ca.pem
|
||||
- kubectl config set-cluster k3s --server=${{secrets.KUBE_HOST}} --certificate-authority=/tmp/ca.pem
|
||||
- kubectl config set-credentials forgejo --token="${{secrets.KUBE_API_TOKEN}}"
|
||||
- kubectl config set-context k3s --cluster k3s --user forgejo --namespace default
|
||||
- kubectl config use-context k3s
|
||||
- name: "Deploy"
|
||||
run: |
|
||||
- cd chart
|
||||
- helm upgrade --install versandlabel .
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue