ci(deploy): deploy pre-built images tagged by commit SHA - #2131
Open
alanpeixinho wants to merge 2 commits into
Open
alanpeixinho wants to merge 2 commits into
alanpeixinho wants to merge 2 commits into
Conversation
alanpeixinho
marked this pull request as ready for review
September 22, 2026 21:12
* Publish GHCR Images: optional ref on manual dispatch; tag images with resolved commit SHA; push `latest` only on push to main * Staging: required `image_tag`; pull GHCR images with `--no-build`; manual `workflow_dispatch`; CI passes `github.sha` after tests * Production: required `image_tag` (replaces unused `tag` default); export `IMAGE_TAG` on deploy; checkout deploy SHA on server * Align staging `docker-compose.yml` image paths with `IMAGE_OWNER` / `IMAGE_REPOSITORY` from `.env.example` * Update DEPLOYMENT.md and README for SHA-based deploy flow Closes kernelci#2087
alanpeixinho
force-pushed
the
chore/deploy-sha-images
branch
from
September 23, 2026 12:58
e9a1955 to
bfb9c73
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it is
Staging and production deploy pre-built GHCR images by commit SHA instead of
:latestor on-server builds.ref; images tagged with resolved SHA;:latestonly on push tomain.github.sha; pull +up --no-build; optional manual deploy withimage_tag.image_tag(SHA); pulls that tag;DASHBOARD_VERSIONfrom deployed commit..env.example; docs updated.Do not run Deploy production Dashboard for this PR.
How to test
1. Publish (no staging, no prod)
Commit SHA: <sha>is the commit you built.https://github.com/orgs/kernelci/packages):dashboard-backend,dashboard-frontend,dashboard-proxyeach have a tag equal to that full SHA.latesttag digest should be unchanged (compare digest before vs after).2. Negative staging (no host change)
gh workflow run "Deploy Staging and E2E" \ --repo kernelci/dashboard \ --ref chore/deploy-sha-images \ -f image_tag=<commit tag from the published image>).actions/checkout(refnot found).3. Manual staging (optional — live staging)
Same workflow as (2), image_tag = SHA from (1). This updates staging.
Deploying staging with IMAGE_TAG=<sha>.ghcr.io/kernelci/dashboard/dashboard-backend:<sha>dashboard-frontendanddashboard-proxy.git describe, not the image tag.4. After merge to
main(live staging; existing CI behavior)Two runs, same merge commit. Actions at
https://github.com/kernelci/dashboard/actions.CI
pull_request). Title is the merge commit.github.sha).Deploying staging with IMAGE_TAG=<sha>equals the header SHA.…/dashboard-*: <same sha>, not:latest.Publish
Commit SHA: <sha>matchesIMAGE_TAGfrom the CI staging job.Discord only fires if staging fails; success is Actions Summary only.
Closes #2087.