Skip to content
Closed
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 @@ -388,6 +388,7 @@ periodics:
workdir: true
interval: 24h
labels:
ci.openshift.io/release-type: informing
job-release: "4.4"
name: promote-release-openshift-okd-machine-os-content-e2e-aws-4.4
spec:
Expand Down Expand Up @@ -518,8 +519,27 @@ periodics:

# debug output
oc describe -n ${namespace} istag/machine-os-content:latest

# Craft a release image
MOC_SHA256=$( oc get istag -n "${namespace}" istag/machine-os-content:latest -o template='{{ .image.metadata.name }}' )
export RELEASE_IMAGE_LATEST=registry.svc.ci.openshift.org/${namespace}/release:latest
oc registry login
oc adm release new \
-n origin \
--from-image-stream=$(BRANCH) \
--to-image=${RELEASE_IMAGE_LATEST} \
machine-os-content=registry.svc.ci.openshift.org/${namespace}/machine-os-content@${MOC_SHA256}
# execute the test
ci-operator \
--artifact-dir=$(ARTIFACTS) \
--namespace=${namespace} \
--secret-dir=/usr/local/pull-secret \
--secret-dir=/usr/local/e2e-$(CLUSTER_TYPE)-cluster-profile \
--target=e2e-$(CLUSTER_TYPE)
# promote to fcos namespace

oc tag ${namespace}/machine-os-content:latest fcos/machine-os-content:${BRANCH}
oc tag fcos/machine-os-content:${BRANCH} ${TAG_NS}/${BRANCH}:machine-os-content
oc tag fcos/machine-os-content:${BRANCH} ${namespace}/machine-os-content@${MOC_SHA256}
env:
- name: TAG_NS
value: origin
Expand Down