Skip to content

Commit

Permalink
openshift/os/periodic: Add extentions container build
Browse files Browse the repository at this point in the history
  • Loading branch information
jmarrero committed Jul 7, 2022
1 parent 864d96b commit 81df830
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ci-operator/config/openshift/os/openshift-os-master__periodic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,16 @@ images:
- destination_dir: magic
source_path: /tmp/cosa
to: machine-os-oci-content-rhel-8.6
- dockerfile_path: extensions/Dockerfile
inputs:
machine-os-oci-content-rhel-8.6:
as:
- registry.ci.openshift.org/rhcos-devel/rhel-coreos:latest
to: rhcos-extensions-8.6
promotion:
additional_images:
rhel-coreos: machine-os-oci-content-rhel-8.6
rhel-coreos-extensions: rhcos-extensions-8.6
excluded_images:
- '*'
namespace: rhcos-devel
Expand All @@ -110,6 +117,10 @@ tests:
container:
from: machine-os-oci-content-rhel-8.6
cron: '@daily'
- as: validate-built-extensions-8.6
commands: cat /etc/os-release
container:
from: rhcos-extensions-8.6
zz_generated_metadata:
branch: master
org: openshift
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ postsubmits:
- --report-credentials-file=/etc/report/credentials
- --target=[images]
- --target=machine-os-oci-content-rhel-8.6
- --target=rhcos-extensions-8.6
- --variant=periodic
command:
- ci-operator
Expand Down
52 changes: 52 additions & 0 deletions ci-operator/jobs/openshift/os/openshift-os-master-presubmits.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ presubmits:
- --report-credentials-file=/etc/report/credentials
- --target=[images]
- --target=machine-os-oci-content-rhel-8.6
- --target=rhcos-extensions-8.6
- --variant=periodic
command:
- ci-operator
Expand Down Expand Up @@ -102,6 +103,57 @@ presubmits:
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )periodic-images,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
- ^master$
- ^master-
cluster: build03
context: ci/prow/periodic-validate-built-extensions-8.6
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/variant: periodic
ci.openshift.io/generator: prowgen
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-os-master-periodic-validate-built-extensions-8.6
rerun_command: /test periodic-validate-built-extensions-8.6
spec:
containers:
- args:
- --gcs-upload-secret=/secrets/gcs/service-account.json
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
- --report-credentials-file=/etc/report/credentials
- --target=validate-built-extensions-8.6
- --variant=periodic
command:
- ci-operator
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /secrets/gcs
name: gcs-credentials
readOnly: true
- mountPath: /etc/pull-secret
name: pull-secret
readOnly: true
- mountPath: /etc/report
name: result-aggregator
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: pull-secret
secret:
secretName: registry-pull-credentials
- name: result-aggregator
secret:
secretName: result-aggregator
trigger: (?m)^/test( | .* )periodic-validate-built-extensions-8.6,?($|\s.*)
- agent: kubernetes
always_run: false
branches:
Expand Down

0 comments on commit 81df830

Please sign in to comment.