refactoring ci/cd
Some checks failed
Build Docker / deploy (push) Failing after 1s
Build Docker / build (push) Has been skipped

This commit is contained in:
2026-03-06 22:22:41 +03:00
parent 8f6b8c99a9
commit 9b9e0a5466
9 changed files with 32 additions and 18 deletions

View File

@@ -1,9 +1,14 @@
- hosts: servers
- name: Preflight checks and deploy wedding-site
hosts: servers
become: yes
vars:
env_file: $(pwd)/.env
tasks:
env_file: .env
pre_tasks:
- name: Ping server to check connectivity
ping:
tasks:
- name: Install wget
apt:
name: wget
@@ -37,4 +42,4 @@
creates: /opt/infra/node-docker.yaml
- name: Start node-docker
shell: docker-compose -f /opt/infra/node-docker.yaml up -d
shell: docker-compose -f /opt/infra/node-docker.yaml up -d