[ci] feat: try to rebuild from mgmt01

This commit is contained in:
Simon Cornet 2024-09-06 12:12:50 +02:00
parent ab71401ade
commit 8ff89d24b6

View File

@ -34,7 +34,9 @@ jobs:
context: '.' context: '.'
file: 'Dockerfile.linux.amd64' file: 'Dockerfile.linux.amd64'
push: true 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 # ansible deployment
@ -49,17 +51,17 @@ jobs:
with: with:
# bastion # bastion
proxy_host: 'bastion.siempie.com' proxy_host: 'wireguard.do.siempie.com'
proxy_port: '22' proxy_port: '22'
proxy_username: ${{ secrets.USERNAME }} proxy_username: ${{ secrets.USERNAME }}
proxy_key: ${{ secrets.SSHKEY }} proxy_key: ${{ secrets.SSHKEY }}
# ansible management # ansible management
host: 'ansible.siempie.internal' host: 'mgmt01.infra.vpn.mirahsimon.us'
port: '22' port: '22'
username: ${{ secrets.USERNAME }} username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSHKEY }} key: ${{ secrets.SSHKEY }}
# command # command
script: | script: |
sudo /usr/local/bin/ansible-playbook /etc/ansible/playbooks/production/www.yaml kubectl apply -f /home/simon/Documents/kaas-simoncor-net/manifests