From 09dbca4767f8adcd10e848dcb177d41ea460f92c Mon Sep 17 00:00:00 2001 From: root Date: Sat, 20 Jun 2026 19:20:45 -0400 Subject: [PATCH] fix: add alpine container to deploy job for shared hosting compatibility --- .gitea/workflows/build.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 99ada5c..10b30a8 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -86,8 +86,10 @@ jobs: # DEPLOY (manual): to shared hosting via SSH # ────────────────────────────────────────────── deploy: - name: Deploy to production + name: Deploy to shared hosting runs-on: ubuntu-latest + container: + image: alpine:3.20 if: github.ref == 'refs/heads/develop' needs: [lint, build] environment: @@ -97,17 +99,17 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Download build artifacts + - name: Install SSH and rsync + run: | + apk add --no-cache openssh-client sshpass rsync + + - name: Download built artifacts uses: actions/download-artifact@v4 with: name: dist path: dist/ - - name: Install SSH client - run: | - apk add --no-cache openssh-client sshpass rsync - - - name: Deploy via rsync + - name: Deploy built files to shared hosting run: | sshpass -p "${{ secrets.SSH_PASSWORD }}" rsync -avz --delete \ -e "ssh -p ${{ vars.SSH_PORT || 22 }} -o StrictHostKeyChecking=no" \