Merge branch 'main' into release
Build, Test and Push Flask App / deploy-release (push) Failing after 43s
Build, Test and Push Flask App / deploy-release (push) Failing after 43s
This commit is contained in:
commit
e68f374152
2 files changed
+16
-1
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user