Skip to content

ci: publish via the shared workflow and version from the tag - #92

Merged
KOliver94 merged 2 commits into
mainfrom
shared-publish
Nov 21, 2026
Merged

KOliver94 merged 2 commits into
mainfrom
shared-publish

Conversation

@KOliver94

Copy link
Copy Markdown
Member

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 a git describe recipe kept twice, once in the workflow and once in next.config.ts. It is the same versioning request-manager now uses.

What changes

  • docker-publish.yml keeps its triggers, paths-ignore and concurrency, and becomes one Docker job calling shared-publish.yml:
    • It grants the write scopes the shared workflow's Publish job needs. On pull requests the shared Build job runs with contents: read, gets no secrets and pushes nothing.
    • It passes NEXT_PUBLIC_SENTRY_DSN, NEXT_PUBLIC_SENTRY_ENVIRONMENT, SENTRY_ORG and SENTRY_PROJECT from repository variables as build args.
    • The Sentry token goes to tag builds only.
  • Versions:
    • A vX.Y.Z tag gives X.Y.Z.
    • Every other image gives 0.0.0+<sha7>.
    • Local builds give dev.
  • Only tag builds upload source maps and create the Sentry release backstage@X.Y.Z.
  • The Dockerfile takes the standard VERSION build arg (default dev) and sets NEXT_PUBLIC_APP_VERSION from it. NEXT_PUBLIC_COMMIT_HASH is gone: the commit is the part of the version after +. The secret mount id is now SENTRY_AUTH_TOKEN, as in the other repositories.
  • next.config.ts makes no git calls any more.
  • The sidebar footer goes through a new releaseLink helper (tested):
    • A tag build shows vX.Y.Z and links to the release.
    • Any other image shows the commit and links to it.
    • A local build shows dev and links to the repository.
  • docker-compose.yml passes VERSION. docs/releases.md and docs/observability.md describe the new scheme.

For reviewers

  • main images no longer upload source maps or create a Sentry release, and no longer carry a git-describe version. Production runs tagged images only.
  • Image name and tags (main, pr-<n>, X.Y.Z, X.Y) and the provenance attestation stay the same.
  • The job is now Docker, so its checks read Docker / Build (PRs) and Docker / Publish. None of them is required.
  • Docker / Publish first runs after merge, and the tag path (token, source maps, release) first runs with the next release.
  • The first build after merge starts with a cold cache, because the cache now has a different name (scope).
  • AGENTS.md carries the heading next dev rewrites in its own block.

@coderabbitai

coderabbitai Bot commented Nov 21, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@KOliver94
KOliver94 enabled auto-merge (squash) November 21, 2026 01:27
@codecov

codecov Bot commented Nov 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (786e173) to head (361b89f).
✅ All tests successful. No failed tests found.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@KOliver94
KOliver94 merged commit f70dd17 into main Nov 21, 2026
14 checks passed
@KOliver94
KOliver94 deleted the shared-publish branch November 21, 2026 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant