-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
27 lines (24 loc) · 895 Bytes
/
Taskfile.yml
File metadata and controls
27 lines (24 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
version: '3'
tasks:
hoy-chains-seal-ssh:
desc: create and seal the ssh deploy key for the hoy-chains tenant repository
cmds:
- |
set -e
NAME=hoy-chains
tusk -qf tusk.yml \
git-deploykey \
--namespace flux-system \
--name $NAME \
tenants/hoy-chains/tmp
mv tenants/$NAME/tmp/secret-${NAME}sealed.yaml tenants/$NAME/
cat tenants/$NAME/tmp/identity.pub
echo "NOW GO UPDATE THE DEPLOY KEY for polysensus/$NAME to the above public key"
grep " - secret-${NAME}sealed.yaml" tenants/$NAME/kustomization.yaml && exit 0
echo " - secret-${NAME}sealed.yaml" >> tenants/$NAME/kustomization.yaml
echo "Added secret-${NAME}sealed.yaml to tenants/$NAME/kustomization.yaml"
update-secrets:
desc: update all the sealed secrets
cmds:
- task: hoy-chains-seal-ssh