Skip to content

Commit 43b826a

Browse files
committed
feat: make image namespace a workflow input (default sdp)
1 parent d0d95fd commit 43b826a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/build_spark-connect-client.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ jobs:
3131
with:
3232
product-name: spark-connect-client
3333
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
34+
image-namespace: stackable

.github/workflows/reusable_build_image.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
sdp-version:
88
required: true
99
type: string
10+
image-namespace:
11+
type: string
12+
default: "sdp"
1013
secrets:
1114
harbor-robot-secret:
1215
description: The secret for the Harbor robot user used to push images and manifest
@@ -66,7 +69,7 @@ jobs:
6669
image-registry-uri: oci.stackable.tech
6770
image-registry-username: robot$sdp+github-action-build
6871
image-registry-password: ${{ secrets.harbor-robot-secret }}
69-
image-repository: sdp/${{ inputs.product-name }}
72+
image-repository: ${{ inputs.image-namespace }}/${{ inputs.product-name }}
7073
image-manifest-tag: ${{ steps.build.outputs.image-manifest-tag }}
7174
source-image-uri: localhost/${{ inputs.product-name }}:${{ steps.build.outputs.image-manifest-tag }}
7275

@@ -92,7 +95,7 @@ jobs:
9295
image-registry-uri: oci.stackable.tech
9396
image-registry-username: robot$sdp+github-action-build
9497
image-registry-password: ${{ secrets.harbor-robot-secret }}
95-
image-repository: sdp/${{ inputs.product-name }}
98+
image-repository: ${{ inputs.image-namespace }}/${{ inputs.product-name }}
9699
image-index-manifest-tag: ${{ matrix.versions }}-stackable${{ inputs.sdp-version }}
97100

98101
notify:

0 commit comments

Comments
 (0)