From f61611b923e6364eb4581729e875d7d578449f4b Mon Sep 17 00:00:00 2001 From: Rayhan Hossain Date: Wed, 22 Apr 2026 12:49:27 -0700 Subject: [PATCH 1/2] Build DocumentDB images from custom gitHub sources Signed-off-by: Rayhan Hossain --- .github/workflows/build_documentdb_images.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build_documentdb_images.yml b/.github/workflows/build_documentdb_images.yml index 757225fd..bd3257e1 100644 --- a/.github/workflows/build_documentdb_images.yml +++ b/.github/workflows/build_documentdb_images.yml @@ -13,6 +13,14 @@ on: description: 'Released DocumentDB version to package (for example 0.109.0)' required: false default: '0.109.0' + documentdb_repo: + description: 'GitHub repo for DocumentDB extension releases (owner/repo)' + required: false + default: 'documentdb/documentdb' + gateway_source_repo: + description: 'GHCR repo for gateway source image (without ghcr.io/ prefix)' + required: false + default: 'documentdb/documentdb/documentdb-local' repository_dispatch: types: [documentdb-release] @@ -24,8 +32,8 @@ permissions: env: DEFAULT_DOCUMENTDB_VERSION: '0.109.0' - DOCUMENTDB_RELEASE_REPO: documentdb/documentdb - GATEWAY_SOURCE_IMAGE_REPO: ghcr.io/documentdb/documentdb/documentdb-local + DOCUMENTDB_RELEASE_REPO: ${{ github.event.inputs.documentdb_repo || 'documentdb/documentdb' }} + GATEWAY_SOURCE_IMAGE_REPO: ghcr.io/${{ github.event.inputs.gateway_source_repo || 'documentdb/documentdb/documentdb-local' }} jobs: # --------------------------------------------------------------------------- From 6d49e261c49899bedf4c9f4302e718dfff0b91b9 Mon Sep 17 00:00:00 2001 From: Rayhan Hossain Date: Wed, 22 Apr 2026 13:15:44 -0700 Subject: [PATCH 2/2] Allow to modify repo/image only, not the owner Signed-off-by: Rayhan Hossain --- .github/workflows/build_documentdb_images.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build_documentdb_images.yml b/.github/workflows/build_documentdb_images.yml index bd3257e1..372b36c6 100644 --- a/.github/workflows/build_documentdb_images.yml +++ b/.github/workflows/build_documentdb_images.yml @@ -14,13 +14,13 @@ on: required: false default: '0.109.0' documentdb_repo: - description: 'GitHub repo for DocumentDB extension releases (owner/repo)' + description: 'GitHub repo name for DocumentDB extension releases (repo only, owner derived from current repo)' required: false - default: 'documentdb/documentdb' - gateway_source_repo: - description: 'GHCR repo for gateway source image (without ghcr.io/ prefix)' + default: 'documentdb' + gateway_source_image: + description: 'Gateway source image path under owner (e.g., documentdb/documentdb-local)' required: false - default: 'documentdb/documentdb/documentdb-local' + default: 'documentdb/documentdb-local' repository_dispatch: types: [documentdb-release] @@ -32,8 +32,8 @@ permissions: env: DEFAULT_DOCUMENTDB_VERSION: '0.109.0' - DOCUMENTDB_RELEASE_REPO: ${{ github.event.inputs.documentdb_repo || 'documentdb/documentdb' }} - GATEWAY_SOURCE_IMAGE_REPO: ghcr.io/${{ github.event.inputs.gateway_source_repo || 'documentdb/documentdb/documentdb-local' }} + DOCUMENTDB_RELEASE_REPO: ${{ github.repository_owner }}/${{ github.event.inputs.documentdb_repo || 'documentdb' }} + GATEWAY_SOURCE_IMAGE_REPO: ghcr.io/${{ github.repository_owner }}/${{ github.event.inputs.gateway_source_image || 'documentdb/documentdb-local' }} jobs: # ---------------------------------------------------------------------------