From 918540f74221befc86b9282dcdfe4edf3b011932 Mon Sep 17 00:00:00 2001 From: Faustin Lammler Date: Thu, 10 Aug 2023 17:39:18 +0200 Subject: [PATCH] fixup! Simplify commands --- .github/workflows/deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index c0086420..b8c08dcf 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -35,5 +35,5 @@ jobs: 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/ - ssh -p ${{ secrets.SERVER_PORT }} ${{ secrets.USER }}@${{ secrets.SERVER_IP }} "cd /srv/dev/docker-compose/ && ./generate-config.py && docker-compose up -d" + 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