From 64c370de8f0b0447700865f807a183875cab5b9a Mon Sep 17 00:00:00 2001 From: Fiachra Corcoran Date: Wed, 5 Feb 2025 23:01:52 +0000 Subject: [PATCH] Add prow docker build job for focom operator image --- .prow.yaml | 42 +++++++++++++++++++++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/.prow.yaml b/.prow.yaml index b54bab0a..b8b9d0b4 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -160,7 +160,47 @@ postsubmits: items: - key: .dockerconfigjson path: config.json - + + - name: build-push-nephio-focom-operator-dev-image + cluster: default + always_run: true + branches: + - "main" + annotations: + description: Build and Push Nephio Focom Operator Dev 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=operators/focom-operator/Dockerfile --destination=nephio/focom-operator:${BUILD_ID} --destination=nephio/focom-operator: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 + - name: build-push-nephio-krm-func-config-inject-dev-image cluster: default always_run: true