Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 867 Bytes

builds-gitconfig-file.adoc

File metadata and controls

33 lines (25 loc) · 867 Bytes

Creating a secret from a .gitconfig file

If the cloning of your application is dependent on a .gitconfig file, then you can create a secret that contains it. Add it to the builder service account and then your BuildConfig.

Procedure
  • To create a secret from a .gitconfig file:

$ oc create secret generic <secret_name> --from-file=<path/to/.gitconfig>
Note

SSL verification can be turned off if sslVerify=false is set for the http section in your .gitconfig file:

[http]
        sslVerify=false