ci: Add release start
Build, Test and Push Flask App / docker-build-and-push (push) Successful in 1m4s
Build, Test and Push Flask App / deploy (push) Successful in 56s
Build, Test and Push Flask App / deploy-release (push) Successful in 1m18s

This commit is contained in:
Black_Raven committed 2026-10-02 15:48:54 +03:00
1 parent aab71bb425
commit fe97818968
2 files changed
+66

No files matched your search

+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-frontend
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-frontend
chdir: ~/web