From bedf4c288011f8847e2d9ea1dd9e6a0644039238 Mon Sep 17 00:00:00 2001 From: Soeren Wegener Date: Thu, 22 Jun 2023 23:05:55 +0200 Subject: [PATCH] Copy infrastructure files to server --- .github/workflows/ci-cd.yaml | 2 +- compose.yaml | 2 +- Caddyfile => infrastructure/Caddyfile | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename Caddyfile => infrastructure/Caddyfile (100%) diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 607100e..21f58b8 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -109,6 +109,6 @@ jobs: - name: Add host fingerprint to known_hosts run: echo "${{ vars.SSH_HOST_FINGERPRINT }}" >> ~/.ssh/known_hosts - name: Copy compose.yaml to host - run: scp compose.yaml ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:~/snatch/docker-compose.yaml + run: scp -r compose.yaml infrastructure ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }}:~/snatch/ - name: Reload docker compose run: ssh ${{ vars.SSH_USER }}@${{ vars.SSH_HOST }} 'cd ~/snatch && docker compose pull && docker compose up -d' \ No newline at end of file diff --git a/compose.yaml b/compose.yaml index 78a2a2b..5e4f14d 100644 --- a/compose.yaml +++ b/compose.yaml @@ -27,7 +27,7 @@ services: - "80:80" - "443:443" volumes: - - "./Caddyfile:/etc/caddy/Caddyfile" + - "./infrastructure/Caddyfile:/etc/caddy/Caddyfile" - "caddy-data:/data" - "static_files:/mnt/static" # - "media_files:/mnt/media" diff --git a/Caddyfile b/infrastructure/Caddyfile similarity index 100% rename from Caddyfile rename to infrastructure/Caddyfile