Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 833 Bytes

builds-source-secret-combinations-gitconfig-ca.adoc

File metadata and controls

27 lines (19 loc) · 833 Bytes

Creating a secret that combines a .gitconfig file and CA certificate

You can combine the different methods for creating source clone secrets for your specific needs, such as a secret that combines a .gitconfig file and CA certificate.

Prerequisites
  • .gitconfig file

  • CA certificate

Procedure
  • Create a secret that combines a .gitconfig file and CA certificate

$ oc create secret generic <secret_name> \
    --from-file=ca.crt=<path/to/certificate> \
    --from-file=<path/to/.gitconfig>