shippinglabel-converter/.forgejo/workflows/deploy.yaml
Workflow config file is invalid. Please check your config file: yaml: unmarshal errors: line 30: cannot unmarshal !!str `apt upd...` into model.Step
2025-05-25 18:05:19 +02:00

41 lines
1.2 KiB
YAML

name: Deployment
on:
push:
jobs:
container:
runs-on: docker
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Kaniko
uses: https://codeberg.org/umglurf/kaniko-action@main
with:
credentials: |
https://index.docker.io/v1/=${{ secrets.DOCKER_USER }}:${{ secrets.DOCKER_PASSWORD }}
destinations: |
docker.io/fleaz/shippinglabel:latest
push: true
helm:
needs:
- container
runs-on: docker
container: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- apt update && apt install kubectl helm
- name: Setup k8s context
run: |
echo "${{secrets.KUBE_API_CRT}}" > /tmp/ca.pem
kubectl config set-cluster k3s --server=${{secrets.KUBE_HOST}}3 --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 .