[ci] feat: added rollout deployment
Some checks failed
Build and Publish / Deployment (push) Failing after 3s
Build and Publish / Build (push) Successful in 11s

This commit is contained in:
Simon Cornet 2024-09-06 13:54:21 +02:00
parent 08a97e9225
commit 7505d18443

View File

@ -34,8 +34,7 @@ jobs:
context: '.' context: '.'
file: 'Dockerfile.linux.amd64' file: 'Dockerfile.linux.amd64'
push: true push: true
tags: | tags: 'cr.simoncor.net/siempie/start-simoncor-net:latest,cr.simoncor.net/siempie/start-simoncor-net:${{ gitea.sha }}'
cr.simoncor.net/siempie/start-simoncor-net:latest
# ansible deployment # ansible deployment
@ -62,4 +61,5 @@ jobs:
# command # command
script: | script: |
sudo /usr/local/bin/ansible-playbook /etc/ansible/playbooks/production/start.yaml sudo -u simon kubectl apply -f /home/simon/Documents/kaas-start-simoncor-net/manifests
sudo -u simon kubectl rollout restart --namespace=start-simoncor-net deployment start-simoncor-net