Gate CI to Gitea only for now
CI / build-and-push (push) Successful in 42s
CI / deploy (push) Successful in 9s

GitHub pushes no longer run build/test/coverage at all — the job-level
condition previously only skipped the docker/deploy steps, so every GitHub
push still burned CI minutes on a build+test that went nowhere. GitHub gets
its own release-triggered workflow later.
This commit is contained in:
James Wampler
2026-08-19 14:51:41 -07:00
parent 2d7c2a93b7
commit a45e8a59c7
+7 -8
View File
@@ -3,12 +3,10 @@
# scripts/ci/, so the entire pipeline is reproducible by running the same scripts # scripts/ci/, so the entire pipeline is reproducible by running the same scripts
# locally — no marketplace build/test/push actions. # locally — no marketplace build/test/push actions.
# #
# Gitea (origin) is the internal remote and runs the full pipeline: build, test, # Gitea (origin) is the only remote that runs this on push — gated by the
# coverage badge, docker push, deploy, health check. GitHub is the public mirror and
# only needs to prove the code builds and tests pass — it has no registry secrets and
# no [self-hosted, qa] runner, so the docker push/deploy job is skipped there via the
# `github.server_url` check below (identical on both engines: https://github.com on # `github.server_url` check below (identical on both engines: https://github.com on
# GitHub, the Gitea instance URL on Gitea). # GitHub, the Gitea instance URL on Gitea). GitHub pushes intentionally do nothing for
# now; GitHub will get its own release-triggered workflow later.
name: CI name: CI
on: on:
@@ -17,6 +15,7 @@ on:
jobs: jobs:
build-and-push: build-and-push:
if: github.server_url != 'https://github.com'
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
@@ -43,16 +42,16 @@ jobs:
run: ./scripts/ci/publish-coverage-badge.sh run: ./scripts/ci/publish-coverage-badge.sh
- name: Build Docker images - name: Build Docker images
if: github.server_url != 'https://github.com' && github.ref_name == 'main' if: github.ref_name == 'main'
run: ./scripts/ci/docker-build.sh run: ./scripts/ci/docker-build.sh
- name: Push Docker images - name: Push Docker images
if: github.server_url != 'https://github.com' && github.ref_name == 'main' if: github.ref_name == 'main'
run: ./scripts/ci/docker-push.sh run: ./scripts/ci/docker-push.sh
deploy: deploy:
needs: build-and-push needs: build-and-push
if: github.server_url != 'https://github.com' && github.ref_name == 'main' if: success() && github.ref_name == 'main'
runs-on: [self-hosted, qa] runs-on: [self-hosted, qa]
env: env:
REGISTRY: ${{ secrets.REGISTRY }} REGISTRY: ${{ secrets.REGISTRY }}