Skip to content

Commit

Permalink
Add docker build job for gen-kust-res fn (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
efiacor authored Feb 4, 2025
1 parent e25fa46 commit 2eaacb0
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -480,3 +480,43 @@ postsubmits:
items:
- key: .dockerconfigjson
path: config.json

- 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 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=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

0 comments on commit 2eaacb0

Please sign in to comment.