Skip to content

Commit

Permalink
Update variables and secrets in deploy script
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzCK authored Dec 10, 2024
1 parent 961ce8a commit b930c03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b930c03

Please sign in to comment.