Repository navigation
ci: publish via the shared workflow and version from the tag - #92
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #92 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 98 99 +1
Lines 2079 2085 +6
Branches 513 515 +2
=========================================
+ Hits 2079 2085 +6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The Docker image is now built through the shared publish workflow in
BSStudio/.github(v1.3.0), and its version comes from the tag alone instead of agit describerecipe kept twice, once in the workflow and once innext.config.ts. It is the same versioning request-manager now uses.What changes
docker-publish.ymlkeeps its triggers,paths-ignoreand concurrency, and becomes oneDockerjob callingshared-publish.yml:Publishjob needs. On pull requests the sharedBuildjob runs withcontents: read, gets no secrets and pushes nothing.NEXT_PUBLIC_SENTRY_DSN,NEXT_PUBLIC_SENTRY_ENVIRONMENT,SENTRY_ORGandSENTRY_PROJECTfrom repository variables as build args.vX.Y.Ztag givesX.Y.Z.0.0.0+<sha7>.dev.backstage@X.Y.Z.Dockerfiletakes the standardVERSIONbuild arg (defaultdev) and setsNEXT_PUBLIC_APP_VERSIONfrom it.NEXT_PUBLIC_COMMIT_HASHis gone: the commit is the part of the version after+. The secret mount id is nowSENTRY_AUTH_TOKEN, as in the other repositories.next.config.tsmakes no git calls any more.releaseLinkhelper (tested):vX.Y.Zand links to the release.devand links to the repository.docker-compose.ymlpassesVERSION.docs/releases.mdanddocs/observability.mddescribe the new scheme.For reviewers
mainimages no longer upload source maps or create a Sentry release, and no longer carry a git-describe version. Production runs tagged images only.main,pr-<n>,X.Y.Z,X.Y) and the provenance attestation stay the same.Docker, so its checks readDocker / Build(PRs) andDocker / Publish. None of them is required.Docker / Publishfirst runs after merge, and the tag path (token, source maps, release) first runs with the next release.AGENTS.mdcarries the headingnext devrewrites in its own block.