From 7e415158facbd4ee2ac189152b5ecd6e198d2fb3 Mon Sep 17 00:00:00 2001 From: Fiachra Corcoran Date: Tue, 4 Feb 2025 13:20:05 +0000 Subject: [PATCH 1/2] Add docker build job for gen-kust-res fn --- .prow.yaml | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/.prow.yaml b/.prow.yaml index c4342944..bbf89561 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -480,3 +480,43 @@ postsubmits: items: - key: .dockerconfigjson path: config.json + + - name: build-push-nephio-krm-func-gen-kust-res-image + cluster: default + always_run: true + branches: + - "main" + annotations: + description: Build and Push Nephio KRM Gen Kustomize Resources Image to DockerHub + decorate: true + decoration_config: + censor_secrets: true + max_concurrency: 1 + extra_refs: + - org: nephio-project + repo: nephio + base_ref: main + path_alias: "nephio_build" + spec: + containers: + - name: kaniko + image: gcr.io/kaniko-project/executor:debug + command: + - "/bin/sh" + - "-c" + - | + executor --context=/home/prow/go/src/nephio_build/ --dockerfile=krm-functions/gen-kustomize-res/Dockerfile --destination=nephio/gen-kustomize-res:${BUILD_ID} --destination=nephio/gen-kustomize-res:latest + volumeMounts: + - name: kaniko-secret + mountPath: /kaniko/.docker/ + resources: + requests: + cpu: 1 + memory: 1Gi + volumes: + - name: kaniko-secret + secret: + secretName: regcred + items: + - key: .dockerconfigjson + path: config.json \ No newline at end of file From 0aae9dc1b8ccef06fdd65f64e03e3a1507e0136e Mon Sep 17 00:00:00 2001 From: Fiachra Corcoran Date: Tue, 4 Feb 2025 13:30:13 +0000 Subject: [PATCH 2/2] Add missing dev reference to job --- .prow.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.prow.yaml b/.prow.yaml index bbf89561..b0244d51 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -481,13 +481,13 @@ postsubmits: - key: .dockerconfigjson path: config.json - - name: build-push-nephio-krm-func-gen-kust-res-image + - name: build-push-nephio-krm-func-gen-kust-res-dev-image cluster: default always_run: true branches: - "main" annotations: - description: Build and Push Nephio KRM Gen Kustomize Resources Image to DockerHub + description: Build and Push Nephio KRM Gen Kustomize Resources Dev Image to DockerHub decorate: true decoration_config: censor_secrets: true