mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
26 lines
784 B
Plaintext
26 lines
784 B
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * builds/creating-build-inputs.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="builds-source-secret-combinations-gitconfig-ca_{context}"]
|
|
= 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 certificate authority (CA) certificate.
|
|
|
|
.Prerequisites
|
|
|
|
* A `.gitconfig` file
|
|
* CA certificate
|
|
|
|
.Procedure
|
|
|
|
* To create a secret that combines a `.gitconfig` file and CA certificate, enter the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc create secret generic <secret_name> \
|
|
--from-file=ca.crt=<path/to/certificate> \
|
|
--from-file=<path/to/.gitconfig>
|
|
----
|