test ci
Some checks failed
Build Docker / deploy (push) Failing after 37s
Build Docker / build (push) Has been skipped

This commit is contained in:
2026-03-06 13:41:50 +03:00
parent ea06c16aac
commit 0794517f69
4 changed files with 29 additions and 7 deletions

View File

@@ -24,10 +24,7 @@ jobs:
ref: main
path: tmp-repo
sparse-checkout: |
ansible/deploy.yml
ansible/inventory.ini
ansible/secrets.yml
ansible/
- name: Run Ansible playbook
run: ansible-playbook -i inventory.ini tmp-repo/ansible/deploy.yml -e @secrets.yml -e env_file="$(pwd)/.env"
env:
@@ -46,6 +43,25 @@ jobs:
- name: Build image
run: docker build -t back:latest -f docker/dockerfile .
- name: Start docker-compose
- name: Start docker-compose of project
run: docker compose --env-file .env -f docker/docker-compose.yaml up -d
- name: Checkout only caddy.yml
uses: actions/checkout@v4
with:
repository: MH.Dmitrii/wedding-site
ref: main
path: caddy
sparse-checkout: |
docker/caddy/
- name: Checkout web-site
uses: actions/checkout@v4
with:
repository: MH.Dmitrii/wedding-site
ref: main
path: caddy/site
sparse-checkout: |
server/frontend
- name: Start docker-compose caddy
run: docker compose -f caddy/caddy.yaml up -d

View File

@@ -13,7 +13,12 @@ services:
- $PWD/site:/srv
- caddy_data:/data
- caddy_config:/config
networks:
- wedding-site-network
volumes:
caddy_data:
caddy_config:
networks:
wedding-site-network:
external: true

View File

@@ -1,4 +1,4 @@
example.com {
ru.homyk.space {
encode gzip
@@ -8,7 +8,7 @@ example.com {
}
# --- Frontend ---
root * /var/www/site
root * /srv
file_server
log {

View File

@@ -0,0 +1 @@
test