File tree Expand file tree Collapse file tree 1 file changed +13
-6
lines changed
content/en/docs/getting-started/Quickstarts Expand file tree Collapse file tree 1 file changed +13
-6
lines changed Original file line number Diff line number Diff line change @@ -25,12 +25,19 @@ kubectl create secret docker-registry push-secret \
2525
2626If your source code is in a private git repository, you'll need to create a secret containing the private git repo's username and password:
2727
28- ``` bash
29- USERNAME=< your_git_username>
30- PASSWORD=< your_git_password>
31- kubectl create secret generic git-repo-secret \
32- --username=$USERNAME \
33- --password=$USERNAME
28+ ``` shell
29+ cat << EOF | kubectl apply -f -
30+ apiVersion: v1
31+ kind: Secret
32+ metadata:
33+ name: git-repo-secret
34+ annotations:
35+ build.shipwright.io/referenced.secret: "true"
36+ type: kubernetes.io/basic-auth
37+ stringData:
38+ username: <cleartext username>
39+ password: <cleartext password>
40+ EOF
3441```
3542
3643You can then reference this secret in the ` Function ` CR's spec.build.srcRepo.credentials
You can’t perform that action at this time.
0 commit comments