chore: sync dev with main after GHCR deploy setup

This commit is contained in:
Mauricio Barragan
2026-07-19 13:00:37 -06:00
+8 -5
View File
@@ -59,16 +59,19 @@ jobs:
needs: build-push
runs-on: ubuntu-latest
steps:
- name: Setup SSH
- name: Install SSH key
uses: webfactory/ssh-agent@v0.9.1
with:
ssh-private-key: ${{ secrets.VPS_SSH_KEY }}
- name: Trust VPS host key
run: |
mkdir -p ~/.ssh
printf '%s' "${{ secrets.VPS_SSH_KEY }}" > ~/.ssh/deploy_key
chmod 600 ~/.ssh/deploy_key
ssh-keyscan -H "${{ secrets.VPS_HOST }}" >> ~/.ssh/known_hosts 2>/dev/null
ssh-keyscan -H "${{ secrets.VPS_HOST }}" >> ~/.ssh/known_hosts
- name: Pull image and restart app
run: |
ssh -i ~/.ssh/deploy_key "${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }}" bash -s <<'EOF'
ssh "${{ secrets.VPS_USER }}@${{ secrets.VPS_HOST }}" bash -s <<'EOF'
set -euo pipefail
cd /root/projects/arbpulse
git fetch origin main