ci: unify deploy pipeline - sync to Gitea + self-hosted deploy
All checks were successful
Deploy API-Ubigeo / deploy (push) Successful in 13m52s
All checks were successful
Deploy API-Ubigeo / deploy (push) Successful in 13m52s
- GitHub: CI on ubuntu-latest (no more self-hosted) - GitHub: add sync-gitea.yml for auto-deploy trigger - Gitea: add deploy.yml with robust health check - Remove disabled deploy.yml.disabled
This commit is contained in:
17
.github/workflows/sync-gitea.yml
vendored
Normal file
17
.github/workflows/sync-gitea.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
name: Sync to Gitea
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
sync:
|
||||
name: Push to Gitea
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Push to Gitea
|
||||
run: |
|
||||
git push https://${{ secrets.GITEA_TOKEN }}@git.darkcodex.dev/darkcodex/api-ubigeo.git main --force
|
||||
Reference in New Issue
Block a user