From 33fbd4505bfd0ead40e11f19c35adb575bed310e Mon Sep 17 00:00:00 2001 From: Leander Furumo Date: Thu, 10 Jul 2025 15:27:45 +0200 Subject: [PATCH] use new vars and envs for deploy action --- .github/workflows/deploy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 682fcd1..246821f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,10 +15,10 @@ jobs: install -m 600 -D /dev/null ~/.ssh/id_ed25519 echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 # This should be redundant but seems to do the trick. - ssh-keyscan -H ${{ secrets.SSH_HOST }} > ~/.ssh/known_hosts + ssh-keyscan -H ${{ vars.SSH_HOST }} > ~/.ssh/known_hosts - name: Connect, pull, build and deploy - run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout ${{ secrets.MAIN_BRANCH }} && git pull && docker compose down && docker compose up -d --build && exit" + run: ssh ${{ secrets.SSH_USER }}@${{ vars.SSH_HOST }} "cd ${{ secrets.WORK_DIR }} && git checkout ${{ vars.MAIN_BRANCH }} && git pull && docker compose down && docker compose up -d --build && exit" - name: Clean up run: rm -rf ~/.ssh