feat: container registry deploy (build in CI, pull on server)
Deploy / deploy (push) Has been cancelled
ci / build (push) Has been cancelled

This commit is contained in:
2026-06-13 20:56:04 +03:00
parent ca6b5f40c3
commit 0f73ca72d7
9 changed files with 143 additions and 3 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Deploy
on:
push:
branches: master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Ansible
run: |
pip install -r infra/ansible/requirements.txt
ansible-galaxy install -r infra/ansible/requirements.yml
- name: Run playbook
run: |
echo "${{ secrets.ANSIBLE_VAULT_PASSWORD }}" > .vault_pass
ansible-playbook -i infra/ansible/inventory/hosts.yml infra/ansible/playbook.yml --vault-password-file .vault_pass
rm .vault_pass