Skip to content

Commit

Permalink
Merge pull request #14 from radoslawc/pre_image
Browse files Browse the repository at this point in the history
Adding pre-submit image build
  • Loading branch information
nephio-prow[bot] committed Jan 29, 2024
2 parents ca3c60f + 21fdf3b commit afeefbe
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion .prow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ presubmits:
yarn lint:all
yarn tsc:full
yarn prettier:check
- name: presubmit-kbp-license-header-check
decorate: true
always_run: true
Expand All @@ -43,6 +44,7 @@ presubmits:
- "-c"
- |
/usr/local/bin/checklicense.sh > ${ARTIFACTS}/license_headers_results.txt
- name: presubmit-kbp-scancode-toolkit
decorate: true
always_run: true
Expand All @@ -59,6 +61,7 @@ presubmits:
requests:
cpu: 2
memory: 1Gi

- name: presubmit-kbp-fossology
decorate: true
always_run: true
Expand All @@ -71,4 +74,40 @@ presubmits:
- "-c"
- |
/bin/fossologyscanner --report SPDX_JSON repo nomos ojo copyright keyword
cp -R results ${ARTIFACTS}/
cp -R results ${ARTIFACTS}/
- name: build-push-pre-image-kbp
cluster: default
always_run: true
branches:
- "main"
annotations:
description: Build and Push Presubmit Image to Hub
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/pre-kpt-backstage-plugins:${BUILD_ID}
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

0 comments on commit afeefbe

Please sign in to comment.