diff --git a/prow/config/config.yaml b/prow/config/config.yaml index 993281ef..0eb74932 100644 --- a/prow/config/config.yaml +++ b/prow/config/config.yaml @@ -167,6 +167,81 @@ postsubmits: path: config.json + nephio-project/kpt-backstage-plugins: + - name: build-push-image-kbp-release-conf + cluster: default + always_run: true + branches: + - "^v.*$" + annotations: + description: Build and Push Image to DockerHub when release tag is created + decorate: true + decoration_config: + censor_secrets: true + max_concurrency: 0 + spec: + containers: + - name: kaniko + image: gcr.io/kaniko-project/executor:debug + command: + - "/bin/sh" + - "-c" + - | + executor --context=${PWD} \ + --dockerfile=Dockerfile --destination=nephio/kpt-backstage-plugins:${PULL_BASE_REF} + volumeMounts: + - name: kaniko-secret + mountPath: /kaniko/.docker/ + resources: + requests: + cpu: 2 + memory: 2Gi + volumes: + - name: kaniko-secret + secret: + secretName: regcred + items: + - key: .dockerconfigjson + path: config.json + + - name: build-push-image-kbp-commit-conf + cluster: default + always_run: true + branches: + - "main" + annotations: + description: Build and Push Image to DockerHub every commit + decorate: true + decoration_config: + censor_secrets: true + max_concurrency: 0 + spec: + containers: + - name: kaniko + image: gcr.io/kaniko-project/executor:debug + command: + - "/bin/sh" + - "-c" + - | + executor --context=${PWD} \ + --dockerfile=Dockerfile --destination=nephio/kpt-backstage-plugins:${BUILD_ID} + volumeMounts: + - name: kaniko-secret + mountPath: /kaniko/.docker/ + resources: + requests: + cpu: 2 + memory: 2Gi + volumes: + - name: kaniko-secret + secret: + secretName: regcred + items: + - key: .dockerconfigjson + path: config.json + + + presubmits: nephio-project/nephio-test-prow-project: - name: test-presubmit