Last active
July 27, 2022 23:22
-
-
Save guaxinim/a4f9da580200fdf37c1d322ab3a851e7 to your computer and use it in GitHub Desktop.
Openshift S2i from a private repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-keygen -C "openshift-source-builder/repo@github" -f repo-at-github -N '' | |
oc secrets new-sshauth elvis-secret --ssh-privatekey=repo-at-github | |
secrets add serviceaccount/builder secrets/elvis-secret | |
oc set build-secret --source bc/serpro-ws elvis-secret | |
oc new-build fis-java-openshift~ssh://[email protected]:2222/erocha/serpro-ws.git --build-secret elvis-secret | |
oc new-app serpro-ws |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment