fix: add alpine container to deploy job for shared hosting compatibility
This commit is contained in:
@@ -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" \
|
||||
|
||||
Reference in New Issue
Block a user