d95e61ca07
Deploy / deploy (push) Failing after 0s
- Delete .gitea/workflows/build.yml (typecheck/lint only; caused confusion) - Rewrite .gitea/workflows/deploy.yml as a thin wrapper that calls ./deploy/deploy.sh, matching the design in deploy/GITEA_SETUP.md (Option B). The 14512-byte inline deploy is removed; deploy.sh is the source of truth for the deploy mechanism. - Fix runs-on to [self-hosted, ubuntu-latest] (matches the actual labels registered on crispygoat-host-runner; the previous [.., linux, ..] was unmatchable, which is why runs were stuck in the queue)
23 lines
483 B
YAML
23 lines
483 B
YAML
name: Deploy
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
deploy:
|
|
# Self-hosted Gitea runner.
|
|
# Registered labels on crispygoat-host-runner: self-hosted, ubuntu-latest
|
|
runs-on: [self-hosted, ubuntu-latest]
|
|
|
|
steps:
|
|
- name: Update homelab checkout
|
|
run: |
|
|
cd /home/tyler/route-commerce
|
|
git pull --ff-only origin main
|
|
|
|
- name: Run deploy.sh
|
|
working-directory: /home/tyler/route-commerce
|
|
run: ./deploy/deploy.sh
|