1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-06 15:46:57 +01:00
Files
openshift-docs/modules/builds-source-secret-combinations-basic-auth-gitconfig.adoc
2019-05-13 13:57:48 +10:00

30 lines
938 B
Plaintext

// Module included in the following assemblies:
//
// * assembly/builds
// This module can be included from assemblies using the following include statement:
// include::<path>/builds-source-secret-combinations-basic-auth-gitconfig.adoc[leveloffset=+1]
[id="builds-source-secret-combinations-basic-auth-gitconfig_{context}"]
= Creating a basic authentication secret with a *_.gitconfig_* file
You can combine the different methods for creating source clone secrets for your
specific needs, such as a secret that combines a basic authentication and *_.gitconfig_* file.
.Prerequisites
* Basic authentication credentials
* *_.gitconfig_* file
.Procedure
* Create a basic authentication secret with a *_.gitconfig_* file
----
$ oc create secret generic <secret_name> \
--from-literal=username=<user_name> \
--from-literal=password=<password> \
--from-file=</path/to/.gitconfig> \
--type=kubernetes.io/basic-auth
----