Use local mounts for Gitea deploy workflow
Deploy / deploy-dev (push) Failing after 3s
Deploy / deploy-prod (push) Has been skipped

This commit is contained in:
blaisadmin
2026-05-23 17:51:33 -04:00
parent c09e7f63ce
commit fe4e69ceb5
+12 -24
View File
@@ -12,34 +12,22 @@ jobs:
if: ${{ github.event_name == 'push' }} if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Deploy dev over SSH - name: Deploy dev
run: | run: |
mkdir -p ~/.ssh set -e
printf '%s\n' "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/deploy_key cd /deploy/FlockPal-dev
chmod 600 ~/.ssh/deploy_key git fetch --all --prune
git pull --ff-only
ssh -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new "${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" ' docker compose up -d --build
set -e
cd "${{ secrets.DEV_DEPLOY_PATH }}"
git fetch --all --prune
git pull --ff-only
docker compose up -d --build
'
deploy-prod: deploy-prod:
if: ${{ github.event_name == 'workflow_dispatch' }} if: ${{ github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Deploy prod over SSH - name: Deploy prod
run: | run: |
mkdir -p ~/.ssh set -e
printf '%s\n' "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/deploy_key cd /deploy/FlockPal
chmod 600 ~/.ssh/deploy_key git fetch --all --prune
git pull --ff-only
ssh -i ~/.ssh/deploy_key -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new "${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}" ' docker compose up -d --build
set -e
cd "${{ secrets.PROD_DEPLOY_PATH }}"
git fetch --all --prune
git pull --ff-only
docker compose up -d --build
'