Files
endorphin-aster-vm/.gitea/workflows/ci-deploy.yml
T
codex-bot 51cd64e688
Verify databases and deploy Aster VM / verify-and-deploy (push) Successful in 7m49s
ci: publish actual Endor example outputs as artifacts
2026-10-19 15:16:28 +08:00

49 lines
1.3 KiB
YAML

name: Verify databases and deploy Aster VM
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: endorphin-aster-vm-production
cancel-in-progress: false
jobs:
verify-and-deploy:
runs-on: ces-control
timeout-minutes: 60
env:
DOCKER_BUILDKIT: "0"
ASTER_RELEASE_SHA: ${{ gitea.sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Verify SQLite, PostgreSQL and host behavior
run: sh scripts/ci-ces-control.sh
- name: Show Endor example execution output
if: always()
run: cat ci-output/endor-examples.md
- name: Upload Endor example execution output
if: always()
uses: actions/upload-artifact@v3
with:
name: endor-execution-output-${{ gitea.sha }}
path: |
ci-output/endor-examples.md
ci-output/endor-examples.json
if-no-files-found: error
retention-days: 30
- name: Build production image
run: docker build --target runtime -t "endorphin-aster-vm:$ASTER_RELEASE_SHA" .
- name: Deploy VM host and provision PostgreSQL
if: gitea.ref == 'refs/heads/main'
run: sh scripts/deploy-ces-control.sh