You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: add org.opencontainers.image.revision OCI label to all container images (#1270)
<!-- acp:session_id=session-4e5cb5e4-6117-43bf-aef5-e905685f7425
source=#1269 last_action=2026-04-10T17:23:27Z retry_count=0 -->
## Summary
- Adds `ARG GIT_COMMIT=unknown` and `LABEL
org.opencontainers.image.revision=$GIT_COMMIT` to the final stage of all
7 production Dockerfiles (backend, frontend, operator, public-api,
ambient-runner, state-sync, ambient-api-server)
- Passes `GIT_COMMIT=${{ github.sha }}` in `build-args` for both push
and PR build steps in `components-build-deploy.yml`
- Passes `GIT_COMMIT=${{ github.sha }}` in `build-args` in
`prod-release-deploy.yaml` (alongside existing `AMBIENT_VERSION` which
is set to the release tag, not a SHA)
- Passes `--build-arg GIT_COMMIT=$(git rev-parse HEAD)` in all Makefile
build targets (including `kind-reload-*` and `local-reload-api-server`)
## Test plan
- [ ] Verify label is present on a locally built image: `podman build
--build-arg GIT_COMMIT=$(git rev-parse HEAD) -t test components/backend
&& podman inspect test | jq
'.[0].Config.Labels["org.opencontainers.image.revision"]'`
- [ ] Verify CI builds pass with new `build-args` format
- [ ] Verify `skopeo inspect
docker://quay.io/ambient_code/vteam_backend:<sha> | jq
'.Labels["org.opencontainers.image.revision"]'` returns a valid SHA
after merge
Closes#1269
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---
🤖 [Ambient
Session](https://ambient-code.apps.rosa.vteam-uat.0ksl.p3.openshiftapps.com/projects/ambient-platform-and-workflow-feedback-loop-running/sessions/session-4e5cb5e4-6117-43bf-aef5-e905685f7425)
Co-authored-by: Ambient Code Bot <bot@ambient-code.local>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Jeremy Eder <jeder@redhat.com>
0 commit comments