[ci] feat: migrated to gitea actions workflow
This commit is contained in:
parent
3931b0a594
commit
2e41e932f7
@ -38,28 +38,28 @@ jobs:
|
|||||||
cr.simoncor.net/siempie/simoncor-net:latest
|
cr.simoncor.net/siempie/simoncor-net:latest
|
||||||
|
|
||||||
|
|
||||||
# kubernetes deployment
|
# ansible deployment
|
||||||
deployment:
|
deployment:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
# name: Build
|
# name: Build
|
||||||
- name: 'Kubernetes rollout deployment'
|
- name: 'Ansible deployment'
|
||||||
uses: 'appleboy/ssh-action@v1.0.3'
|
uses: 'appleboy/ssh-action@v1.0.3'
|
||||||
with:
|
with:
|
||||||
|
|
||||||
# bastionproxy_host: ${{ secrets.PROXY_HOST }}
|
# bastion
|
||||||
proxy_host: 'siempie.com'
|
proxy_host: 'siempie.com'
|
||||||
proxy_port: '22'
|
proxy_port: '22'
|
||||||
proxy_username: ${{ secrets.USERNAME }}
|
proxy_username: ${{ secrets.USERNAME }}
|
||||||
proxy_key: ${{ secrets.SSHKEY }}
|
proxy_key: ${{ secrets.SSHKEY }}
|
||||||
|
|
||||||
# kubernetes management
|
# ansible management
|
||||||
host: 'k9s.siempie.internal'
|
host: 'ansible.siempie.internal'
|
||||||
port: '22'
|
port: '22'
|
||||||
username: ${{ secrets.USERNAME }}
|
username: ${{ secrets.USERNAME }}
|
||||||
key: ${{ secrets.SSHKEY }}
|
key: ${{ secrets.SSHKEY }}
|
||||||
|
|
||||||
# command
|
# command
|
||||||
script: |
|
script: |
|
||||||
kubectl -n simoncor-net rollout restart deployment simoncor-net
|
sudo /usr/local/bin/ansible-playbook /etc/ansible/playbooks/production/www.yaml
|
||||||
|
Loading…
Reference in New Issue
Block a user