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