File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,20 @@ deploy-secrets-cert:
66
66
NAME=$(name-dashed ) \
67
67
envsubst < deploy/secrets-cert.yml | kubectl apply -f -
68
68
69
+ # # deploy the docker registry secret utilized by the application
70
+ deploy-secrets-docker-repo :
71
+ $(eval github-token := $(shell aws ssm get-parameter --name "/github/pat" --with-decryption --query "Parameter.Value" --output text) )
72
+ # test the token
73
+ echo $(github-token ) | docker login ghcr.io -u $(name ) --password-stdin
74
+ # create the secret
75
+ kubectl create secret docker-registry docker-registry \
76
+ --namespace=" $( name-dashed) " \
77
+ --docker-server=ghcr.io/$(name ) \
78
+ --docker-username=$(name ) \
79
+ --docker-password=$(github-token ) \
80
+ --dry-run=client -o yaml | kubectl apply -f -
81
+
82
+
69
83
# deploy-secrets-bsky:
70
84
# kubectl create secret generic "$(name-dashed)"-bsky \
71
85
# --namespace="$(name-dashed)" \
Original file line number Diff line number Diff line change 17
17
containers :
18
18
- name : ${NAME}
19
19
image : ${IMAGE}
20
+ imagePullSecrets :
21
+ - name : docker-registry
20
22
resources :
21
23
limits :
22
24
cpu : 1000m
You can’t perform that action at this time.
0 commit comments