Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,42 @@ images:
from: base
to: machine-config-operator
promotion:
additional_images:
machine-config-operator-rpms: rpms
excluded_images:
- machine-config-operator-base-with-rpms
name: "4.3"
namespace: origin
raw_steps:
- rpm_image_injection_step:
from: base
to: machine-config-operator-base-with-rpms
resources:
'*':
limits:
memory: 8Gi
requests:
cpu: 100m
memory: 200Mi
rpm_build_commands: |-
TMPDIR=$( mktemp -d )
RPMBUILD_DIR=_rpmbuild/
COMMIT=$( git rev-parse HEAD )
SHORTCOMMIT=$( git rev-parse --short=7 HEAD )
mkdir -p ${RPMBUILD_DIR}/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
tar -czf "${TMPDIR}/machine-config-operator-${COMMIT}.tar.gz" --exclude='.git' --transform="s|^.|machine-config-operator-${COMMIT}|" --exclude="machine-config-operator-${COMMIT}.tar.gz" ./
cp ./machine-config-daemon.spec "${RPMBUILD_DIR}/SPECS/"
cp "${TMPDIR}/machine-config-operator-${COMMIT}.tar.gz" "${RPMBUILD_DIR}/SOURCES/machine-config-operator-${SHORTCOMMIT}.tar.gz"
rpmbuild -ba --nodeps --define "_topdir $( pwd )/${RPMBUILD_DIR}" --define "commit ${COMMIT}" ${RPMBUILD_DIR}/SPECS/machine-config-daemon.spec
rpm_build_location: _rpmbuild/RPMS/
tag_specification:
name: "4.3"
namespace: origin
tests:
- as: build-rpms-from-tar
commands: '# noop, just to force the building the `rpms` target'
container:
from: machine-config-operator-base-with-rpms
- as: unit
commands: make test-unit
container:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ postsubmits:
- --resolver-address=http://ci-operator-configresolver
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=[images]
- --target=rpms
command:
- ci-operator
env:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,53 @@
presubmits:
openshift/machine-config-operator:
- agent: kubernetes
always_run: true
branches:
- fcos
context: ci/prow/build-rpms-from-tar
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/prowgen-controlled: "true"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
name: pull-ci-openshift-machine-config-operator-fcos-build-rpms-from-tar
rerun_command: /test build-rpms-from-tar
spec:
containers:
- args:
- --artifact-dir=$(ARTIFACTS)
- --branch=fcos
- --give-pr-author-access-to-namespace=true
- --org=openshift
- --repo=machine-config-operator
- --resolver-address=http://ci-operator-configresolver
- --sentry-dsn-path=/etc/sentry-dsn/ci-operator
- --target=build-rpms-from-tar
command:
- ci-operator
env:
- name: CONFIG_SPEC
valueFrom:
configMapKeyRef:
key: openshift-machine-config-operator-fcos.yaml
name: ci-operator-misc-configs
image: ci-operator:latest
imagePullPolicy: Always
name: ""
resources:
requests:
cpu: 10m
volumeMounts:
- mountPath: /etc/sentry-dsn
name: sentry-dsn
readOnly: true
serviceAccountName: ci-operator
volumes:
- name: sentry-dsn
secret:
secretName: sentry-dsn
trigger: (?m)^/test( | .* )build-rpms-from-tar,?($|\s.*)
- agent: kubernetes
always_run: true
branches:
Expand Down