Merge branch 'main' into release
Build, Test and Push Flask App / deploy-release (push) Failing after 43s

This commit is contained in:
Black_Raven committed 2026-10-02 15:35:52 +03:00
commit e68f374152
2 files changed
+16 -1

No files matched your search

+1 -1
View File
@@ -46,6 +46,6 @@ jobs:
run: | run: |
ansible-playbook \ ansible-playbook \
-i "${{ secrets.RELEASE_SERVER_IP }}," \ -i "${{ secrets.RELEASE_SERVER_IP }}," \
ansible/restart_compose.yml \ ansible/restart_release_compose.yml \
--user "${{ secrets.RELEASE_SERVER_USER }}" \ --user "${{ secrets.RELEASE_SERVER_USER }}" \
--private-key ~/.ssh/deploy_key --private-key ~/.ssh/deploy_key
+15
View File
@@ -0,0 +1,15 @@
- name: Restart Docker Compose services
hosts: all
# become: yes # <-- больше не нужно, т.к. пользователь уже имеет права Docker
tasks:
- name: docker compose down
ansible.builtin.shell:
cmd: docker compose down pvh-backend
chdir: ~/web
- name: prune system
ansible.builtin.shell:
cmd: docker system prune -a -f
- name: docker compose up -d
ansible.builtin.shell:
cmd: docker compose up -d pvh-backend
chdir: ~/web