From 736c4144fe155e2a0b3db50d8921595acd92f846 Mon Sep 17 00:00:00 2001 From: Chris Wydra Date: Mon, 13 Jul 2026 10:54:38 +1200 Subject: [PATCH] fix(docker-build): push build-index as outputs.json/bake-metadata.json The Harbor build-index blobs were pushed as build-index.json/bake.json, but the k8s-apps-config consumer (update-app-manifest.sh) and the Bitbucket docker-build-pipe use outputs.json/bake-metadata.json. oras uses the filename as the blob title, so a GitHub-built index was invisible to the deploy step - it checks for outputs.json, misses, and falls back to the retired Artifactory (404). Surfaced by the first GitHub-built Harbor-only deploy (metadata-editor, MT-32). Content already matches the consumer's schema (.outputs[]); this is purely the filename contract. --- .github/workflows/docker-build.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 58b66db..c472f5d 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -378,11 +378,18 @@ jobs: # docker-build-pipe run.sh + k8s-apps-config update-app-manifest.sh. harbor_build_index_ref="${HARBOR_HOST}/${HARBOR_BUILDS_PROJECT:-builds}/${IMAGE_NAME}:${BUILD_ID}" echo "push build index: ${harbor_build_index_ref}" + # The consumer (k8s-apps-config update-app-manifest.sh) and the + # Bitbucket docker-build-pipe use the blob names outputs.json / + # bake-metadata.json; oras uses the filename as the blob title, so push + # under those names or a GitHub-built index is invisible to the deploy + # step (it checks for outputs.json) and falls back to retired Artifactory. + cp build-index.json outputs.json + cp bake.json bake-metadata.json oras push \ --artifact-type application/vnd.landcareresearch.build-index+json \ "${harbor_build_index_ref}" \ - build-index.json:application/json \ - bake.json:application/json + outputs.json:application/json \ + bake-metadata.json:application/json echo "metadata_url=${harbor_build_index_ref}" >> "$GITHUB_OUTPUT" {