Compare commits

...
2 Commits
Author SHA1 Message Date
Black_Raven e68f374152 Merge branch 'main' into release
Build, Test and Push Flask App / deploy-release (push) Failing after 43s
2026-10-02 15:35:52 +03:00
Black_Raven 5549840536 ci: added release push
Build, Test and Push Flask App / test (push) Successful in 39s
Build, Test and Push Flask App / docker-build-and-push (push) Successful in 1m7s
Build, Test and Push Flask App / deploy (push) Successful in 56s
2026-10-02 15:30:10 +03:00
2 changed files with 16 additions and 1 deletions

No files matched your search

+1 -1
View File
@@ -46,6 +46,6 @@ jobs:
run: |
ansible-playbook \
-i "${{ secrets.RELEASE_SERVER_IP }}," \
ansible/restart_compose.yml \
ansible/restart_release_compose.yml \
--user "${{ secrets.RELEASE_SERVER_USER }}" \
--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