name: Unraid autoredeploy on: workflow_run: workflows: ["GeoIntel release gates"] types: [completed] branches: [main] workflow_dispatch: concurrency: group: unraid-production-geointel cancel-in-progress: false permissions: contents: read jobs: deploy: name: Deploy geointel if: ${{ gitea.event_name == 'workflow_dispatch' || gitea.event.workflow_run.conclusion == 'success' }} runs-on: deploy-geointel timeout-minutes: 180 steps: - name: Deploy exact validated Gitea revision env: DEPLOY_SHA: ${{ gitea.event.workflow_run.head_sha || gitea.sha }} run: | set -euo pipefail test -n "$DEPLOY_SHA" docker exec gitea-deploy-control \ /opt/gitea-deploy/deploy.py deploy \ "$GITHUB_REPOSITORY" "$DEPLOY_SHA"