From 8ff89d24b61279db4d40c305576eb9cd7c728f73 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Fri, 6 Sep 2024 12:12:50 +0200 Subject: [PATCH] [ci] feat: try to rebuild from mgmt01 --- .gitea/workflows/build.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1209828..ffc0e81 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -34,7 +34,9 @@ jobs: context: '.' file: 'Dockerfile.linux.amd64' push: true - tags: 'cr.simoncor.net/siempie/simoncor-net:latest' + tags: + - 'cr.simoncor.net/siempie/simoncor-net:latest' + - 'cr.simoncor.net/siempie/simoncor-net:${{ gitea.sha }}' # ansible deployment @@ -49,17 +51,17 @@ jobs: with: # bastion - proxy_host: 'bastion.siempie.com' + proxy_host: 'wireguard.do.siempie.com' proxy_port: '22' proxy_username: ${{ secrets.USERNAME }} proxy_key: ${{ secrets.SSHKEY }} # ansible management - host: 'ansible.siempie.internal' + host: 'mgmt01.infra.vpn.mirahsimon.us' port: '22' username: ${{ secrets.USERNAME }} key: ${{ secrets.SSHKEY }} # command script: | - sudo /usr/local/bin/ansible-playbook /etc/ansible/playbooks/production/www.yaml + kubectl apply -f /home/simon/Documents/kaas-simoncor-net/manifests