Registry Sync
The registrySync.sh script uses a tool called skopeo in order to synchronize images between the public internet and registry.dso.mil which is required for pipelines to pass.
There is one step which is required before executing the registrySync.sh script and that is to log skopeo into repo1.
[rmengert@Robs-MacBook-Pro:~/projects/cdi/utils]
$ skopeo login -u rmengert registry.dso.mil
Password:
Login Succeeded!
[rmengert@Robs-MacBook-Pro:~/projects/cdi/utils]
$
Note, the credential used to perform the skopeo login MUST be a personal access token if you are using two-factor authentication.
After logging in, the registrySync.sh can be safely run and will pull a copy of the images in skopeo-harness-sync.yaml from their specified locations and push them into registry.dso.mil. Specifically the container registry attached to the Harness third party repo.
New Image Version
New versions of containers can easily be added by appending a new version to the list in skopeo-cdi-sync.yaml.
For example:
quay.io/kubevirt:
images:
cdi-operator:
- v1.52.0
To add v1.53.0, simply update skopeo-cdi-sync.yaml with this version:
quay.io/kubevirt:
images:
cdi-operator:
- v1.53.0
- v1.52.0