Skip to content

Instantly share code, notes, and snippets.

@guaxinim
Last active July 27, 2022 23:22
Show Gist options
  • Save guaxinim/a4f9da580200fdf37c1d322ab3a851e7 to your computer and use it in GitHub Desktop.
Save guaxinim/a4f9da580200fdf37c1d322ab3a851e7 to your computer and use it in GitHub Desktop.
Openshift S2i from a private repo
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