feat: ci for all pushes, deploy with ssh key, local compose with build
CI / build (push) Failing after 2m11s
Deploy / deploy (push) Has been cancelled

This commit is contained in:
2026-06-13 21:00:09 +03:00
parent fb6bf6e1bf
commit 2a108e1b5a
5 changed files with 28 additions and 25 deletions
-4
View File
@@ -4,7 +4,3 @@ all:
ansible_host: <SERVER_IP>
ansible_user: root
ansible_port: 22
vars:
registry: gitea.d3m0k1d.ru
registry_user: <REGISTRY_USER>
registry_password: <REGISTRY_PASSWORD>
+1 -5
View File
@@ -15,10 +15,6 @@
src: "{{ playbook_dir }}/../docker-compose.yml"
dest: "{{ deploy_path }}/docker-compose.yml"
- name: Login to registry
ansible.builtin.shell:
cmd: echo "{{ registry_password }}" | docker login "{{ registry }}" -u "{{ registry_user }}" --password-stdin
- name: Pull images
ansible.builtin.shell:
cmd: docker compose pull
@@ -27,7 +23,7 @@
REGISTRY: "{{ registry }}"
TAG: "{{ tag }}"
- name: Restart services
- name: Start services
ansible.builtin.shell:
cmd: docker compose up -d --remove-orphans
chdir: "{{ deploy_path }}"