chore: update deploy
CI / build (push) Failing after 1m57s

This commit is contained in:
2026-06-14 00:21:13 +03:00
parent 6367cdae56
commit c3c0e63fd5
4 changed files with 52 additions and 29 deletions
+6 -7
View File
@@ -2,7 +2,7 @@ name: Deploy
on:
push:
branches: [dev]
branches: [master]
env:
REGISTRY: gitea.d3m0k1d.ru
@@ -16,11 +16,13 @@ jobs:
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_rsa
- name: Install Ansible
run: apt update && apt install -y ansible
run: |
apt update && apt install -y ansible
ansible-galaxy install -r infra/ansible/requirements.yml
- name: Login to registry
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login $REGISTRY -u "${{ secrets.REGISTRY_USER }}" --password-stdin
@@ -35,8 +37,5 @@ jobs:
- name: Deploy
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 \
-e registry=$REGISTRY \
-e tag=latest
ansible-playbook -i infra/ansible/inventory/hosts.yml infra/ansible/playbook.yml --vault-password-file .vault_pass
rm .vault_pass