From 7505d184434da6e86f8ca75fd230110ebca06993 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 6 Sep 2024 13:54:21 +0200 Subject: [PATCH] [ci] feat: added rollout deployment --- .gitea/workflows/build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index fc194f9..78a6d9b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -34,8 +34,7 @@ jobs: context: '.' file: 'Dockerfile.linux.amd64' push: true - tags: | - cr.simoncor.net/siempie/start-simoncor-net:latest + tags: 'cr.simoncor.net/siempie/start-simoncor-net:latest,cr.simoncor.net/siempie/start-simoncor-net:${{ gitea.sha }}' # ansible deployment @@ -62,4 +61,5 @@ jobs: # command 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