A basic checkout build and push example for pipelines as code on OpenShift.
If you wish to use an external container registry from OpenShift then use the following steps.
In order to use a this repository as is you will need to create a file called config.json
with the following settings:
{
"auths": {
"quay.io": {
"auth": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX==",
"email": ""
}
}
}
- URL of the registry.
- Encrypted password.
- Email address for the login.
oc create secret generic dockerconfig \
--from-file=.dockerconfigjson=<path/to/config.json> \
--type=kubernetes.io/dockerconfigjson --namespace NAMESPACE
If you wish to use the internal OpenShift Registry then replace the .tekton/push.yaml
with the internal-registry-push.yaml
in the root of this project.