Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nephio-operator image build #57

Merged
merged 1 commit into from
May 29, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions prow/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -879,6 +879,78 @@ postsubmits:
- key: .dockerconfigjson
path: config.json

- name: build-push-image-nephio-operator-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}/operators/nephio-controller-manager \
--dockerfile=Dockerfile --destination=nephio/nephio-operator:${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-nephio-operator-commit-conf
cluster: default
run_if_changed: 'operators/nephio-controller-manager/.*'
branches:
- "main"
annotations:
description: Build and Push Image to DockerHub every commit
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it more like after every PR that gets merged?

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}/operators/nephio-controller-manager \
--dockerfile=Dockerfile --destination=nephio/nephio-operator:${BUILD_ID} \
--destination=nephio/nephio-operator:latest
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

nephio-project/watcher-agent:
- name: build-push-image-watcher-agent-release-conf
cluster: default
Expand Down