From b146822129277aef5fac2e67e550b6361553aa93 Mon Sep 17 00:00:00 2001 From: Faustin Lammler Date: Thu, 10 Aug 2023 17:53:25 +0200 Subject: [PATCH] fixup! fixup! Exclude hidden files --- .github/workflows/deploy.yml | 2 +- rsync.exclude | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 33cc36d3..f157124a 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -36,6 +36,6 @@ jobs: echo "${{ secrets.SSH_PRIVATE_KEY }}" >~/.ssh/id_ed25519 echo "${{ secrets.SSH_KNOWN_HOSTS }}" >~/.ssh/known_hosts ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.USER }}@${{ secrets.SERVER_IP }} "docker-compose -f /srv/dev/docker-compose/docker-compose.yaml down" - rsync -a --progress --exclude-from=rsync.exclude -e "ssh -p ${{ secrets.SERVER_PORT }}" ./ ${{ secrets.USER }}@${{ secrets.SERVER_IP }}:/srv/dev/ + rsync -a --progress --exclude-from=rsync.exclude --exclude=".*" -e "ssh -p ${{ secrets.SERVER_PORT }}" ./ ${{ secrets.USER }}@${{ secrets.SERVER_IP }}:/srv/dev/ ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.USER }}@${{ secrets.SERVER_IP }} "cd /srv/dev/docker-compose/ && ./generate-config.py && docker-compose -f /srv/dev/docker-compose/docker-compose.yaml up -d" rm ~/.ssh/id_ed25519 diff --git a/rsync.exclude b/rsync.exclude index 86d560ce..6a1e085f 100644 --- a/rsync.exclude +++ b/rsync.exclude @@ -1,4 +1,3 @@ -.[a-z]* ci_build_images docker-compose/logs docker-compose/mariadb