fix: align OCI workflow with storefront release pattern #6

Merged
vas2000-work merged 1 commit from fix/align-with-storefront-release-flow into main 2026-05-05 00:52:47 +02:00
Owner

Mirrors the storefront repo's release flow so contributors share one mental model across the org. The previous fix narrowed the build trigger to v* tags only and removed the rolling latest tag; both decisions reverted here.

  • Restores main + tag + paths trigger so every relevant push to main produces an updated :latest image (validation + tip-of-main deploys), and v* tag pushes additionally produce a pinned :vX.Y.Z image. Path filter matches the previous list (src, assets, input.css, index.html, Dioxus.toml, Cargo.{toml,lock}, package.json, bun.lock, oci-build, the workflow file).

  • Restores get-tags.nu to storefront-style logic: tagged or post-tag commits emit [vX.Y.Z, latest]; untagged commits emit [latest] only. The "empty list = skip push" path is gone.

  • Reverts the hardcoded REGISTRY_USER/IMAGE_REGISTRY values back to deriving from github.repository_owner so this stays portable if the repo moves.

  • Switches the build cache from a separate :buildcache tag to the storefront pattern: --cache-from points at the :latest registry tag and --cache-to is type=inline. Matches the storefront workflow exactly.

  • Keeps the image name as mokosh-www (so it lines up with template/mokosh-www/compose.yml in NiceGuyIT/docker rather than the repo name mokosh-clients).

  • Keeps the GIT_SHA --build-arg and the org.opencontainers.image.revision label that surfaces it on the runtime image. Storefront does not have this; preserved here as a strict win for traceability.

The existing create-release.yml is already correct (storefront-style with pull_request/closed trigger and the if-condition at the job level), so it is unchanged.

Mirrors the storefront repo's release flow so contributors share one mental model across the org. The previous fix narrowed the build trigger to v* tags only and removed the rolling latest tag; both decisions reverted here. - Restores main + tag + paths trigger so every relevant push to main produces an updated :latest image (validation + tip-of-main deploys), and v* tag pushes additionally produce a pinned :vX.Y.Z image. Path filter matches the previous list (src, assets, input.css, index.html, Dioxus.toml, Cargo.{toml,lock}, package.json, bun.lock, oci-build, the workflow file). - Restores get-tags.nu to storefront-style logic: tagged or post-tag commits emit [vX.Y.Z, latest]; untagged commits emit [latest] only. The "empty list = skip push" path is gone. - Reverts the hardcoded REGISTRY_USER/IMAGE_REGISTRY values back to deriving from github.repository_owner so this stays portable if the repo moves. - Switches the build cache from a separate :buildcache tag to the storefront pattern: --cache-from points at the :latest registry tag and --cache-to is type=inline. Matches the storefront workflow exactly. - Keeps the image name as mokosh-www (so it lines up with template/mokosh-www/compose.yml in NiceGuyIT/docker rather than the repo name mokosh-clients). - Keeps the GIT_SHA --build-arg and the org.opencontainers.image.revision label that surfaces it on the runtime image. Storefront does not have this; preserved here as a strict win for traceability. The existing create-release.yml is already correct (storefront-style with pull_request/closed trigger and the if-condition at the job level), so it is unchanged.
fix: align OCI workflow with storefront release pattern
Some checks failed
Create release / Create release from merged PR (pull_request) Has been cancelled
6ee159a663
Mirrors the storefront repo's release flow so contributors share one mental model across the org. The previous fix narrowed the build trigger to v* tags only and removed the rolling latest tag; both decisions reverted here.

- Restores main + tag + paths trigger so every relevant push to main produces an updated :latest image (validation + tip-of-main deploys), and v* tag pushes additionally produce a pinned :vX.Y.Z image. Path filter matches the previous list (src, assets, input.css, index.html, Dioxus.toml, Cargo.{toml,lock}, package.json, bun.lock, oci-build, the workflow file).

- Restores get-tags.nu to storefront-style logic: tagged or post-tag commits emit [vX.Y.Z, latest]; untagged commits emit [latest] only. The "empty list = skip push" path is gone.

- Reverts the hardcoded REGISTRY_USER/IMAGE_REGISTRY values back to deriving from github.repository_owner so this stays portable if the repo moves.

- Switches the build cache from a separate :buildcache tag to the storefront pattern: --cache-from points at the :latest registry tag and --cache-to is type=inline. Matches the storefront workflow exactly.

- Keeps the image name as mokosh-www (so it lines up with template/mokosh-www/compose.yml in NiceGuyIT/docker rather than the repo name mokosh-clients).

- Keeps the GIT_SHA --build-arg and the org.opencontainers.image.revision label that surfaces it on the runtime image. Storefront does not have this; preserved here as a strict win for traceability.

The existing create-release.yml is already correct (storefront-style with pull_request/closed trigger and the if-condition at the job level), so it is unchanged.
vas2000-work deleted branch fix/align-with-storefront-release-flow 2026-05-05 00:52:47 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
psa-systems/mokosh-apps!6
No description provided.