Actualiser .forgejo/workflows/ci-test.yml
Some checks failed
deploy / deploy-to-k8s (push) Failing after 0s
Some checks failed
deploy / deploy-to-k8s (push) Failing after 0s
This commit is contained in:
parent
3f582f957a
commit
0dce6c1402
1 changed files with 6 additions and 4 deletions
|
|
@ -6,11 +6,13 @@ on:
|
|||
- '*'
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
deploy-to-k8s:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
- name: Checkout du code
|
||||
image: alpine/git
|
||||
commands:
|
||||
- git clone ${CI_REPOSITORY_URL} .
|
||||
|
||||
- name: Déploiement Kubernetes
|
||||
image: bitnami/kubectl:latest
|
||||
|
|
@ -23,7 +25,7 @@ jobs:
|
|||
- export KUBECONFIG=$(pwd)/kubeconfig.yaml
|
||||
|
||||
- echo "🚀 Mise à jour de l'image du déploiement"
|
||||
- kubectl set image deployment/home-assistant mon-container=${IMAGE_NAME}:${CI_COMMIT_TAG}
|
||||
- kubectl set image deployment/home-assistant homeassistant=${IMAGE_NAME}:${CI_COMMIT_TAG}
|
||||
|
||||
- echo "⏳ Attente que le déploiement soit prêt..."
|
||||
- kubectl rollout status deployment/mon-deployment
|
||||
|
|
|
|||
Loading…
Reference in a new issue