Skip to content

Add publish_staging_images workflow - #66

Merged
KFilippopolitis merged 2 commits into
masterfrom
add-publish-staging-images-workflow
Nov 2, 2026
Merged

KFilippopolitis merged 2 commits into
masterfrom
add-publish-staging-images-workflow

Conversation

@KFilippopolitis

Copy link
Copy Markdown
Contributor

Summary

Adds .github/workflows/publish_staging_images.yml so a push to staging-a or staging-b builds a platform-ui image and deploys it to the matching staging federation in ~3 min.

What it does

  • Triggers: on: push: branches: [staging-a, staging-b] + workflow_dispatch.
  • Concurrency: staging-${{ github.ref_name }} with cancel-in-progress: true.
  • Job build: reuses the build, cache, and Docker Hub login steps from publish_images.yml. Pushes only to hbpmip/platform-ui tagged ${{ github.ref_name }}-${{ github.sha:0:7 }} (7-char short SHA). Outputs the tag.
  • Job bump (needs build): calls mip/.github/workflows/bump-staging-image.yml@master with branch = ref_name, key = platform-ui.image.tag, tag = build output, and secrets STAGING_BUMP_APP_ID / STAGING_BUMP_APP_PRIVATE_KEY.
  • Permissions: least-privilege contents: read; all actions are SHA-pinned to match repo style.

Notes

  • bump-staging-image.yml is referenced by path in the mip repo (not present in the local checkout); the @master ref matches the mip default branch.
  • The bump job's exact input names (branch/key/tag) follow the task spec; confirm against the upstream workflow once it's available.

Checks

  • YAML validated (python3 -c yaml.safe_load); jobs build + bump present.

Made with Cursor

Builds and pushes platform-ui to Docker Hub on push to staging-a/staging-b
and reuses the mip bump workflow to deploy into the matching federation.

Co-authored-by: Cursor <cursoragent@cursor.com>
Route github context data through env vars in the Output staging tag step
instead of interpolating ${{ github.* }} directly into the run script.

Co-authored-by: Cursor <cursoragent@cursor.com>
@KFilippopolitis
KFilippopolitis merged commit 46eee15 into master Nov 2, 2026
16 checks passed
@KFilippopolitis
KFilippopolitis deleted the add-publish-staging-images-workflow branch November 2, 2026 10:11
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.

2 participants