Skip to content

Instantly share code, notes, and snippets.

@luszczynski
Last active March 20, 2019 13:30
Show Gist options
  • Select an option

  • Save luszczynski/d0b6767a3612185927b4bf86d0be9d72 to your computer and use it in GitHub Desktop.

Select an option

Save luszczynski/d0b6767a3612185927b4bf86d0be9d72 to your computer and use it in GitHub Desktop.
Create Git Secret with User and Pass on Openshift

Create Openshift secret with username and password

oc create secret generic gogs-secret --from-literal=username=gogsadmin --from-literal=password=redhat123
oc set build-secret --source bc/tasks gogs-secret
oc start-build tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment