Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Deploy

Check warning on line 1 in .github/workflows/deploy.yml

View workflow job for this annotation

GitHub Actions / Run Pre-commit

1:1 [document-start] missing document start "---"
on:

Check warning on line 2 in .github/workflows/deploy.yml

View workflow job for this annotation

GitHub Actions / Run Pre-commit

2:1 [truthy] truthy value should be one of [false, true]
push:
branches:
Expand All @@ -17,12 +17,16 @@
ssh-private-key: ${{ secrets.VPS_SSH_KEY }}
- name: Copy files to VPS
run: |
rsync -avz --delete ./public/ ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }}:~/Druv/
rsync -avz --delete \
--filter='P /.env' \
--filter='P /caddy_data/' \
--filter='P /caddy_config/' \
./public/ ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }}:~/Druv/
env:
RSYNC_RSH: "ssh -o StrictHostKeyChecking=no"
- name: Deploy on VPS
run: |
ssh -o StrictHostKeyChecking=no ${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }} << 'EOF'

Check failure on line 29 in .github/workflows/deploy.yml

View workflow job for this annotation

GitHub Actions / Run Pre-commit

29:81 [line-length] line too long (98 > 80 characters)
cd ~/Druv/
docker compose pull
docker compose up -d --remove-orphans
Expand Down
Loading