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
The build job in `deploy-azd.yml` already pushes images to the root-prefix
ACR path (`<acr>/<svc>:<sha>`) but every HelmRelease was still pinned to
the legacy `<acr>/holiday-peak-hub/<svc>-dev:azd-deploy-<ts>` path that
predates the Pattern A Flux migration (PR #1089). Flux therefore never saw
new images and the cluster kept running the April 4 build, even after the
direct-model migration merged.
Closes the gap:
* Re-points all 27 HelmReleases (26 agents + crud-service) at the real
build path, pinned to `808d48227b08` — the current `main` SHA — so
Flux reconciles the freshly tested images on merge.
* Adds an `open-image-tag-bump-pr` job that consumes the
`tested-image-*` artifacts the build stage already produces, edits
`.kubernetes/releases/{agents,crud}/<svc>.yaml` via
`scripts/ci/update_helmrelease_image.py` (a surgical line-level edit,
10/10 pylint, byte-identical idempotent), and opens (or refreshes) a
`chore/image-bump-<env>-<sha12>` PR against the default branch. The
bridge respects the GH013 main-branch ruleset because it never pushes to
main itself — it just files a normal PR that the operator merges.
* Replaces the stale `ImageUpdateAutomation` follow-up comment with the
actual implementation notes.
Refs ADR-017 (Pattern A Flux GitOps), PR #1089, PR #1093 (#990 direct-model
migration whose images are the ones being rolled out by this change).
-m "Triggered by deploy-azd run ${{ github.run_id }}. Services: ${UPDATED_SERVICES}. Merge to roll new images via Flux reconciliation."
2827
+
git push -f origin "$branch"
2828
+
existing=$(gh pr list --state open --head "$branch" --base "${DEFAULT_BRANCH:-main}" --json number --jq '.[0].number // ""' 2>/dev/null || echo '')
2829
+
if [ -z "${existing}" ]; then
2830
+
gh pr create \
2831
+
--base "${DEFAULT_BRANCH:-main}" \
2832
+
--head "$branch" \
2833
+
--title "chore(deploy): bump ${DEPLOY_ENV} HelmRelease image tags to ${short}" \
2834
+
--body "Auto-generated by [deploy-azd run ${{ github.run_id }}](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}).
2835
+
2836
+
Updates HelmRelease \`image.repository\` and \`image.tag\` to the freshly built & tested images at SHA \`${DEPLOY_SHA}\` for environment **${DEPLOY_ENV}**.
0 commit comments