homeassistant-deploy/.forgejo/workflows/deploy.yml
gano adb59e0dbf
Some checks failed
deploy / deploy-to-k8s (push) Failing after 0s
Deploy to Kubernetes / deploy-to-k8s (push) Has been cancelled
Actualiser .forgejo/workflows/deploy.yml
2025-05-09 13:46:09 +00:00

29 lines
No EOL
777 B
YAML

name: Deploy to Kubernetes
on:
push:
tags:
- '*'
jobs:
deploy-to-k8s:
runs-on: ubuntu-latest
steps:
- name: Checkout du code
uses: actions/checkout@v3
- name: Déployer sur Kubernetes
uses: docker://bitnami/kubectl:latest
env:
KUBECONFIG_DATA: ${{ secrets.KUBECONFIG_DATA }}
IMAGE_NAME: homeassistant/home-assistant
with:
entrypoint: /bin/sh
args: |
-c "
echo '$KUBECONFIG_DATA' > kubeconfig.yaml &&
export KUBECONFIG=$(pwd)/kubeconfig.yaml &&
kubectl set image deployment/homeassistant home-assistant=${IMAGE_NAME}:${GITHUB_REF_NAME} &&
kubectl rollout status deployment/homeassistant
"