-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy pathopenshift-microshift-main__periodics.yaml
148 lines (148 loc) · 3.91 KB
/
openshift-microshift-main__periodics.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
base_images:
cli:
name: "4.13"
namespace: ocp
tag: cli
libvirt-installer:
name: "4.13"
namespace: ocp
tag: libvirt-installer
test-bin:
name: "4.13"
namespace: ocp
tag: tests
ubi-minimal:
name: ubi-minimal
namespace: ocp
tag: "8"
build_root:
image_stream_tag:
name: release
namespace: openshift
tag: rhel-8-release-golang-1.19-openshift-4.13
images:
- dockerfile_literal: |
FROM libvirt-installer
COPY validate-microshift /tmp/validate-microshift
from: libvirt-installer
inputs:
src:
paths:
- destination_dir: .
source_path: /go/src/github.com/openshift/microshift/validate-microshift
to: microshift-validate
- dockerfile_literal: |
FROM registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.19-openshift-4.13 as builder
RUN dnf install --setopt=tsflags=nodocs -y \
rpm-build glibc-static gcc selinux-policy-devel util-linux && \
dnf clean all && \
rm -rf /var/cache/dnf/*
RUN ls -lA
RUN make rpm
FROM libvirt-installer
USER root
ENV HOME=/tmp/secret
RUN dnf install -y jq && dnf clean all && rm -rf /var/cache/dnf/*
ENV PAYLOAD_PATH=$HOME/payload
WORKDIR $PAYLOAD_PATH
COPY oc openshift-tests usr/bin/
RUN chmod 755 usr/bin/oc && ln -rs usr/bin/oc usr/bin/kubectl
COPY --from=builder /go/src/github.com/openshift/microshift/_output/rpmbuild/RPMS/*/*.rpm packages/
RUN tar -cvf payload.tar . && chmod -R a+rw "${HOME}"
inputs:
cli:
paths:
- destination_dir: .
source_path: /usr/bin/oc
libvirt-installer:
as:
- libvirt-installer
src:
as:
- registry.ci.openshift.org/openshift/release:rhel-8-release-golang-1.19-openshift-4.13
test-bin:
paths:
- destination_dir: .
source_path: /usr/bin/openshift-tests
to: dependency-payload
- dockerfile_literal: |
# build
FROM ubi-minimal
ENV YQ_URL=https://github.com/mikefarah/yq/releases/download/v4.26.1/yq_linux_amd64
ENV YQ_HASH=9e35b817e7cdc358c1fcd8498f3872db169c3303b61645cc1faf972990f37582
RUN echo -n "${YQ_HASH} -" > /tmp/sum.txt ; \
if ! (curl -Ls "${YQ_URL}" | tee /tmp/yq | sha256sum -c /tmp/sum.txt &>/dev/null); then \
echo "ERROR: Expected file at ${YQ_URL} to have checksum ${YQ_HASH} but instead got $(sha256sum </tmp/yq | cut -d' ' -f1)" ; \
exit 1 ; \
fi ; \
chmod +x /tmp/yq && mv /tmp/yq /usr/bin/yq
from: ubi-minimal
to: yq-cli
- dockerfile_literal: |
FROM src
COPY yq /usr/bin/yq
RUN yum install -y --nodocs python3-devel && \
pip3 install pygithub GitPython && \
dnf clean all && \
rm -rf /var/cache/dnf/*
from: src
inputs:
yq-cli:
paths:
- destination_dir: .
source_path: /usr/bin/yq
to: microshift-rebase
releases:
arm64-latest:
candidate:
architecture: arm64
product: ocp
stream: nightly
version: "4.13"
latest:
candidate:
product: ocp
stream: nightly
version: "4.13"
resources:
'*':
limits:
memory: 4Gi
requests:
cpu: 100m
memory: 800Mi
tests:
- as: copr-rpm-health-check
cron: 0 0 * * *
steps:
cluster_profile: gcp
workflow: openshift-microshift-e2e-copr-install
- as: test-unit
commands: make test-unit
container:
from: src
cron: 0 0 * * *
- as: test-srpm
commands: make srpm
container:
from: src
cron: 0 0 * * *
- as: e2e-openshift-conformance-sig-api-machinery
cron: 0 0 * * *
steps:
cluster_profile: gcp
workflow: openshift-microshift-e2e-openshift-conformance-sig-api-machinery
- as: e2e-reboot
cron: 0 0 * * *
steps:
cluster_profile: gcp
workflow: openshift-microshift-e2e-reboot-tests
- as: rebase-on-nightlies
cron: 0 5 * * 1-5
steps:
workflow: openshift-microshift-rebase
zz_generated_metadata:
branch: main
org: openshift
repo: microshift
variant: periodics