diff --git a/.gitea/workflows/cd.yml b/.gitea/workflows/cd.yml index e931261..46b64a7 100644 --- a/.gitea/workflows/cd.yml +++ b/.gitea/workflows/cd.yml @@ -35,7 +35,14 @@ jobs: name: Build & Import needs: check runs-on: self-hosted - if: github.event_name != 'pull_request' + # __PROJECT_NAME__/__MODULE_PATH__ are placeholders substituted only when + # a repo is generated from this template -- on the raw template repo + # itself they're still literal, and `IMAGE: __PROJECT_NAME__` contains + # uppercase letters, which buildah/Docker rejects outright ("repository + # name must be lowercase"). Build/deploy can never succeed here; skip + # them on this repo so its own CI reads green on what it can actually + # validate (the check job). + if: github.event_name != 'pull_request' && github.repository != 'mathias/template-go-agent' outputs: image-tag: ${{ steps.meta.outputs.sha-tag }} steps: