From b1dd9df9260de4635cd63f91bc07f5ad8031a363 Mon Sep 17 00:00:00 2001 From: Bernard Katamanso Date: Wed, 25 Feb 2026 07:10:04 +0000 Subject: [PATCH] ci: update SSH action version and enhance deployment script --- .github/workflows/deploy.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f448f29..cc7444c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -59,13 +59,22 @@ jobs: - uses: actions/checkout@v4 - name: Deploy via SSH - uses: appleboy/ssh-action@v1 + uses: appleboy/ssh-action@v1.0.3 with: host: ${{ secrets.VPS_HOST }} username: ${{ secrets.VPS_USER }} key: ${{ secrets.VPS_SSH_KEY }} script: | - cd /opt/orcta-stack + set -e + + # Configuration + REPO_NAME="orcta-stack" + APP_DIR="/srv/apps/$REPO_NAME" + BRANCH="${{ github.ref_name }}" + + # Create app directory if it doesn't exist + mkdir -p "$APP_DIR" + cd "$APP_DIR" # Pull the new image echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin