Files
AlphaPulse/.gitea/workflows/main.yml
T
root b4f29d4966
Main CI / check-and-build (push) Successful in 1m18s
Development CI / check-and-build (push) Successful in 34s
GitHub Git mirror / mirror (push) Successful in 7s
Development CI / deploy-development (push) Successful in 25s
Add Gitea CI and automatic dev deployment
2026-10-29 21:30:28 +08:00

45 lines
1.5 KiB
YAML

name: Main CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
concurrency:
group: alphapulse-main
cancel-in-progress: false
jobs:
check-and-build:
if: gitea.event_name != 'pull_request' || gitea.event.pull_request.head.repo.full_name == gitea.repository
runs-on: docker
timeout-minutes: 55
env:
GITEA_SHA: ${{ gitea.sha }}
GITEA_REF: ${{ gitea.ref }}
GITEA_EVENT_NAME: ${{ gitea.event_name }}
CI_RESOURCE_ID: main-${{ gitea.run_id }}-${{ gitea.run_attempt }}
DOCKER_CONFIG: /tmp/alphapulse-docker-auth
steps:
- name: Install container tools
run: apk add --no-cache python3 nodejs git docker-cli-buildx docker-cli-compose
- uses: https://github.com/actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
fetch-depth: 0
persist-credentials: false
- name: Test CI control behavior
run: python3 -m unittest discover -s scripts/tests -v
- name: Check, build and verify isolated services
run: python3 scripts/ci.py check
- uses: https://github.com/actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
with:
name: build-receipt
path: build.json
if-no-files-found: error
retention-days: 14
- name: Clean this attempt only
if: always()
run: |
python3 scripts/ci.py cleanup
rm -rf "$DOCKER_CONFIG"