Skip to content

ci: consolidate image-build workflow for single-branch model - #150

Merged
mayankpande88 merged 1 commit into
mainfrom
ci/consolidate-image-build
May 12, 2026
Merged

ci: consolidate image-build workflow for single-branch model#150
mayankpande88 merged 1 commit into
mainfrom
ci/consolidate-image-build

Conversation

@mayankpande88

Copy link
Copy Markdown
Contributor

Description

Consolidates the two image-build workflows for the single-branch model. With prod going away, the dev-/prod- tag prefixes from #148 lose meaning, and build-image-prod.yaml's push: prod trigger never fires.

Changes

  • Deletes .github/workflows/build-image-prod.yaml.
  • Renames .github/workflows/build-image-dev.yaml.github/workflows/build-image.yaml.
  • Drops the dev- tag prefix.
  • Adds a tags: ["v*"] trigger so semver tags published against main produce a versioned image.

New tag scheme

Trigger Image tag
push: main (or workflow_dispatch) ghcr.io/nudgebee/nova:<YYYY-MM-DDTHH-mm-ss>_<git-sha>
push: tags v* (e.g. v0.1.0) ghcr.io/nudgebee/nova:v0.1.0

The timestamp format is unchanged from previous workflows so consumers parsing it still work.

Review Notes — Risks & Counterarguments

  • Anything consuming the old dev- or prod- prefixed images will break. Search for the old tag prefixes in helm charts / ArgoCD manifests / deploy scripts before merging. Migration: drop the prefix.
  • No floating latest / main tag. Every image is uniquely tagged. If a consumer wants "latest commit on main", they'd need to resolve it themselves (or we can add a floating tag later via docker/metadata-action if there's demand).
  • prod branch is now orphaned: nothing in CI references it. Safe to delete on origin after this merges (separate cleanup, not part of this PR).
  • First semver tag push will be the smoke test for the tag path. Recommend workflow_dispatch first to verify nothing else regressed, then push a v0.0.1 or similar trial tag if you want to validate the release path before cutting v0.1.0.

How Has This Been Tested?

  • Two YAML files become one; the surviving file parses (verified via yq round-trip locally).
  • Not yet pushed. Same as ci: migrate image publishing from ECR to GHCR #148: the only way to verify the actual push step end-to-end is to trigger the workflow after merge. Recommend workflow_dispatch first.

Merges build-image-dev.yaml and build-image-prod.yaml into a single
build-image.yaml. With prod gone, the dev-/prod- tag prefixes lose
meaning.

Tag scheme:

  push: main (or workflow_dispatch)
    → ghcr.io/nudgebee/nova:<timestamp>_<git-sha>
  push: tags v*
    → ghcr.io/nudgebee/nova:<git-tag>   (e.g. v0.1.0)

The prod-branch trigger is removed; releases are cut as semver tags
on main rather than promotions to a long-lived prod branch.
@gemini-code-assist

Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@mayankpande88
mayankpande88 merged commit 3b33692 into main May 12, 2026
1 check passed
@mayankpande88
mayankpande88 deleted the ci/consolidate-image-build branch May 12, 2026 10:16
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.

3 participants