Skip to content

Commit

Permalink
Copy infrastructure files to server
Browse files Browse the repository at this point in the history
  • Loading branch information
soerface committed Jun 22, 2023
1 parent 9f0dd22 commit bedf4c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
File renamed without changes.

0 comments on commit bedf4c2

Please sign in to comment.