From b930c0383b904c20100f7a7c783dff60b5941b17 Mon Sep 17 00:00:00 2001 From: Lorenz Cuno Klopfenstein Date: Tue, 10 Dec 2024 22:58:26 +0100 Subject: [PATCH] Update variables and secrets in deploy script --- .github/workflows/deploy-main.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-main.yaml b/.github/workflows/deploy-main.yaml index afa5be1..fcdea7e 100644 --- a/.github/workflows/deploy-main.yaml +++ b/.github/workflows/deploy-main.yaml @@ -16,13 +16,13 @@ jobs: - name: SSH key setup run: | mkdir -p ~/.ssh - # echo "${{ vars.SSH_HOST_PROD }} ${{ inputs.ssh-host-key }}" > ~/.ssh/known_hosts - echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/gha_private_key + # echo "${{ vars.SSH_HOST_REGISTRY_PROD }} ${{ inputs.ssh-host-key }}" > ~/.ssh/known_hosts + echo "${{ secrets.SSH_KEY_REGISTRY_PROD }}" > ~/.ssh/gha_private_key chmod 600 ~/.ssh/gha_private_key - name: SSH fetch commit and setup run: | - ssh -i ~/.ssh/gha_private_key -o StrictHostKeyChecking=accept-new ${{ vars.SSH_USER }}@${{ vars.SSH_HOST_PROD }} << 'ENDSSH' - cd ${{ vars.SSH_PWD }} + ssh -i ~/.ssh/gha_private_key -o StrictHostKeyChecking=accept-new ${{ vars.SSH_USER_REGISTRY_PROD }}@${{ vars.SSH_HOST_REGISTRY_PROD }} << 'ENDSSH' + cd ${{ vars.SSH_PWD_REGISTRY_PROD }} git pull --ff origin main make rebuild ENDSSH