ci: gate workflow to GitHub Actions only, skip on Gitea mirror
CI / mix precommit (push) Has been skipped
CI / All checks passed (push) Has been skipped
CI / Build and push to Harbor (push) Has been skipped

This commit is contained in:
Christopher Fahlin
2026-05-30 20:34:39 -07:00
parent 6aa878a8ab
commit e0372eb081
+6 -2
View File
@@ -23,6 +23,10 @@ env:
jobs:
test:
name: mix precommit
# GitHub-only: this pipeline targets GitHub Actions (Harbor publish, Trivy,
# Cosign). Gitea's runner reports its own host as github.server_url, so the
# whole workflow no-ops on the Gitea mirror.
if: github.server_url == 'https://github.com'
runs-on: ubuntu-latest
timeout-minutes: 15
services:
@@ -77,7 +81,7 @@ jobs:
# can change without touching Settings.
ci-ok:
name: All checks passed
if: always()
if: always() && github.server_url == 'https://github.com'
needs: [test]
runs-on: ubuntu-latest
timeout-minutes: 1
@@ -96,7 +100,7 @@ jobs:
name: Build and push to Harbor
runs-on: ubuntu-latest
timeout-minutes: 30
if: github.event_name == 'push'
if: github.event_name == 'push' && github.server_url == 'https://github.com'
needs: [test]
permissions:
contents: read