diff --git a/.prow.yaml b/.prow.yaml index 7377117..95623af 100644 --- a/.prow.yaml +++ b/.prow.yaml @@ -121,3 +121,38 @@ postsubmits: items: - key: .dockerconfigjson path: config.json + - name: build-push-image-nephio-test-prow-project + 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/nmath:${PULL_BASE_REF} + volumeMounts: + - name: kaniko-secret + mountPath: /kaniko/.docker/ + resources: + requests: + cpu: 2 + memory: 1Gi + volumes: + - name: kaniko-secret + secret: + secretName: regcred + items: + - key: .dockerconfigjson + path: config.json