Compare commits

...
4 Commits
Author SHA1 Message Date
Black_Raven 9f0bc68120 Merge pull request 'Release' (#8) from release into main
Build, Test and Push Flask App / docker-build-and-push (push) Canceled after 0s
Build, Test and Push Flask App / deploy (push) Canceled after 0s
Build, Test and Push Flask App / test (push) Canceled after 10s
Reviewed-on: #8
2026-10-02 12:43:16 +00:00
Black_Raven 87b522bfa9 fixup! Merge branch 'main' into release
Build, Test and Push Flask App / deploy-release (push) Successful in 1m35s
2026-10-02 15:41:04 +03:00
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 17 additions and 2 deletions

No files matched your search

+2 -2
View File
@@ -26,7 +26,7 @@ jobs:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_RELEASE_KEY }}
run: |
mkdir -p ~/.ssh
printf '%s\n' "$SSH_PRIVATE_RELEASE_KEY" > ~/.ssh/deploy_key
printf '%s' "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh-keygen -y -f ~/.ssh/deploy_key >/dev/null
@@ -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