1
0
Fork 0
mirror of https://github.com/imjasonh/shipwright-cosign-example synced 2026-07-08 08:55:24 +00:00
shipwright-cosign-example/secret.yaml.example
2021-04-01 21:58:46 -04:00

23 lines
550 B
Text

apiVersion: v1
kind: Secret
metadata:
name: passphrase
stringData:
COSIGN_PASSWORD: <passphrase for cosign.key private key>
---
## Create this with:
# kubectl create secret generic dockerhub-dockerconfig \
# --from-file=.dockerconfigjson=<path/to/.docker/config.json> \
# --type=kubernetes.io/dockerconfigjson
apiVersion: v1
kind: Secret
metadata:
name: dockerhub-dockerconfig
annotations:
tekton.dev/docker-0: https://index.docker.io
type: kubernetes.io/dockerconfigjson
data:
.dockerconfigjson: <base64-encoded docker config>