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

Image building and pushing for free5gc-operator #27

Merged
merged 3 commits into from
May 5, 2023
Merged
Changes from 2 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
75 changes: 75 additions & 0 deletions prow/config/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,81 @@ postsubmits:
- image: alpine
command:
- /bin/printenv

nephio-project/free5gc-operator:
- name: build-push-image-free5gc-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
radoslawc marked this conversation as resolved.
Show resolved Hide resolved
command:
- "/bin/sh"
- "-c"
- |
executor --context=${PWD}/free5gc-operator \
--dockerfile=Dockerfile --destination=nephio/free5gc-operator:${PULL_BASE_REF}
volumeMounts:
- name: kaniko-secret
mountPath: /kaniko/.docker/
resources:
requests:
cpu: 2
memory: 2Gi
Copy link

Choose a reason for hiding this comment

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

No a problem / blocker. But 2 vCPUs and 2 GB memory seems like a LOT for the operator...

volumes:
- name: kaniko-secret
secret:
secretName: regcred
items:
- key: .dockerconfigjson
path: config.json

- name: build-push-image-free5gc-operator-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: 1
radoslawc marked this conversation as resolved.
Show resolved Hide resolved
spec:
containers:
- name: kaniko
image: gcr.io/kaniko-project/executor:debug
command:
- "/bin/sh"
- "-c"
- |
executor --context=${PWD}/free5gc-operator \
--dockerfile=Dockerfile --destination=nephio/free5gc-operator:${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
Expand Down