Skip to content

Commit e727907

Browse files
author
Kasem Alem
committed
fix(KONFLUX-5917): adding tekton example of using secret
Signed-off-by: Kasem Alem <[email protected]>
1 parent 1e28106 commit e727907

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/modules/ROOT/pages/how-tos/configuring/creating-secrets.adoc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,28 @@ Some container builds may use parent images from registries that require authent
4747
. Enter the password for the registry in **Password**.
4848
. Click **Add secret**.
4949

50+
.Example using registry pull secret in tekton task
51+
52+
[source, yaml]
53+
----
54+
apiVersion: tekton.dev/v1beta1
55+
kind: TaskRun
56+
metadata:
57+
name: build-container
58+
spec:
59+
taskRef:
60+
name: build-container
61+
params:
62+
- name: image
63+
value: registry.redhat.io/my-image:latest
64+
workspaces:
65+
- name: source
66+
subPath: src
67+
volumes:
68+
- name: registry-credentials
69+
secret:
70+
secretName: registry.redhat.io
71+
----
5072

5173
[NOTE]
5274
====

0 commit comments

Comments
 (0)