Workflow: ocm-ci-image-mirror

This workflow mirrors an image from the CI Registry to a given image ref.

Pre Steps

Name Description
ocm-ci-rbac This workflow adds the necessary privileges to the Prow job's namespace so that images can be accessed outside the Prow clusters.
ocm-ci-image-mirror This workflow mirrors an image from the CI Registry to a given image ref.

Test Steps

No test steps configured.

Post Steps

No test steps configured.

Dependencies

Image Exposed As Override[?] Required By Steps
src SOURCE_IMAGE_REF no ocm-ci-image-mirror

Environment

In addition to the default environment, the following variables are consumed through this workflow

Variable Name Variable Content Consumed By Steps
GITHUB_SECRET The name of the kube secret that contains the GitHub token file. (default: acm-cicd-github) ocm-ci-image-mirror
GITHUB_SECRET_FILE THe name of the file in GITHUB_SECRET containing the GitHub token. (default: token) ocm-ci-image-mirror
GITHUB_USER The GitHub user name. (default: acm-cicd-prow-bot) ocm-ci-image-mirror
IMAGE_REPO The repository name of the destination image reference. If blank, the COMPONENT_NAME file will be used. ocm-ci-image-mirror
IMAGE_TAG The tag for the destination image reference. If blank, the tag for a presubmit will be <version>-PR<pull_num>-<commit_sha> and for a postsubmit will be <version>-<commit_sha>. ocm-ci-image-mirror
REGISTRY_HOST The hostname (and port) of the destination registry. (default: quay.io) ocm-ci-image-mirror
REGISTRY_ORG The organization of the destination image reference. (default: open-cluster-management) ocm-ci-image-mirror
REGISTRY_SECRET The name of the kube secret that contains the registry token file. (default: acm-cicd-quay-push) ocm-ci-image-mirror
REGISTRY_SECRET_FILE The name of the file in REGSITRY_SECRET with the contents of the .docker/config.json file encoded in base64. (default: token) ocm-ci-image-mirror
RELEASE_REF The branch name for the release in the RELEASE_REPO. Default is blank this should only be used when the IMAGE_REPO release branch doesn't match the release branch name in the RELEASE_REPO. ocm-ci-image-mirror
RELEASE_REPO The GitHub repo where ACM release data is stored. Do not include the "https://" prefix or the ".git" suffix. (default: github.com/open-cluster-management/release) ocm-ci-image-mirror
SECRETS_PATH The directory where credentials will be mounted. (default: /secrets) ocm-ci-image-mirror

Step Graph

Webreg Workflow "ocm-ci-image-mirror" cluster_0 Pre cluster_1 Test cluster_2 Post 0 ocm-ci-rbac 1 ocm-ci-image-mirror 0->1 2 Intentionally left blank 1->2 3 Intentionally left blank 2->3

GitHub Link:

https://github.com/openshift/release/blob/master/ci-operator/step-registry/ocm/ci/image-mirror/ocm-ci-image-mirror-workflow.yaml

Owners:

Approvers:

Source code for this page located on GitHub