Skip to content

Commit 286c587

Browse files
authored
feat: make image namespace a workflow input (default sdp) (#1072)
* feat: make image namespace a workflow input (default sdp) * feat: add registry namespace input to build workflows and remove default
1 parent 5997f5a commit 286c587

26 files changed

+30
-2
lines changed

.github/workflows/build_airflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ jobs:
3030
with:
3131
product-name: airflow
3232
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
33+
registry-namespace: sdp

.github/workflows/build_druid.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
product-name: druid
3434
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
35+
registry-namespace: sdp

.github/workflows/build_hadoop.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
product-name: hadoop
3434
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
35+
registry-namespace: sdp

.github/workflows/build_hbase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ jobs:
3333
with:
3434
product-name: hbase
3535
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
36+
registry-namespace: sdp

.github/workflows/build_hello-world.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
with:
2929
product-name: hello-world
3030
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
31+
registry-namespace: sdp

.github/workflows/build_hive.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ jobs:
3333
with:
3434
product-name: hive
3535
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
36+
registry-namespace: sdp

.github/workflows/build_java-base.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
with:
2929
product-name: java-base
3030
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
31+
registry-namespace: sdp

.github/workflows/build_java-devel.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
with:
2929
product-name: java-devel
3030
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
31+
registry-namespace: sdp

.github/workflows/build_kafka-testing-tools.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
product-name: kafka-testing-tools
3434
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
35+
registry-namespace: sdp

.github/workflows/build_kafka.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,4 @@ jobs:
3434
with:
3535
product-name: kafka
3636
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
37+
registry-namespace: sdp

.github/workflows/build_kcat.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
product-name: kcat
3434
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
35+
registry-namespace: sdp

.github/workflows/build_krb5.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
with:
2929
product-name: krb5
3030
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
31+
registry-namespace: sdp

.github/workflows/build_nifi.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
product-name: nifi
3434
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
35+
registry-namespace: sdp

.github/workflows/build_omid.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
product-name: omid
3434
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
35+
registry-namespace: sdp

.github/workflows/build_opa.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ jobs:
3030
with:
3131
product-name: opa
3232
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
33+
registry-namespace: sdp

.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+
registry-namespace: stackable

.github/workflows/build_spark-k8s.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ jobs:
3333
with:
3434
product-name: spark-k8s
3535
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
36+
registry-namespace: sdp

.github/workflows/build_stackable-base.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ jobs:
2929
with:
3030
product-name: stackable-base
3131
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
32+
registry-namespace: sdp

.github/workflows/build_superset.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ jobs:
3030
with:
3131
product-name: superset
3232
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
33+
registry-namespace: sdp

.github/workflows/build_testing-tools.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
with:
2929
product-name: testing-tools
3030
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
31+
registry-namespace: sdp

.github/workflows/build_tools.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ jobs:
2929
with:
3030
product-name: tools
3131
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
32+
registry-namespace: sdp

.github/workflows/build_trino-cli.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: trino-cli
3333
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
34+
registry-namespace: sdp

.github/workflows/build_trino.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
product-name: trino
3434
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
35+
registry-namespace: sdp

.github/workflows/build_vector.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,4 @@ jobs:
2828
with:
2929
product-name: vector
3030
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
31+
registry-namespace: sdp

.github/workflows/build_zookeeper.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,4 @@ jobs:
3232
with:
3333
product-name: zookeeper
3434
sdp-version: ${{ github.ref_type == 'tag' && github.ref_name || '0.0.0-dev' }}
35+
registry-namespace: sdp

.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+
registry-namespace:
11+
required: true
12+
type: string
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.registry-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.registry-namespace }}/${{ inputs.product-name }}
9699
image-index-manifest-tag: ${{ matrix.versions }}-stackable${{ inputs.sdp-version }}
97100

98101
notify:

0 commit comments

Comments
 (0)