I used the following commands trying to pass the credentials through secret.
1) oc create secret generic user-at-github --from-literal=username=theyousssef --from-literal=password=xxxxxxxxxxxxxxxxxxxx --type=kubernetes.io/basic-auth
xxxxxxxxxxxxxxxxxx is the token I generated from github.
2) oc secrets link builder user-at-github
3) oc new-app nodejs~https://github.com/<my-username>/<my-repo>.git --source-secret repo-at-github --name privatenode
But it gives an error:
Error from server (BadRequest): unable to wait for build privatenode-1 to run: timed out waiting for the condition
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.