b3bdd347e7
Signed-off-by: Helder Correia <174525+helderco@users.noreply.github.com>
24 lines
447 B
CUE
24 lines
447 B
CUE
dagger.#Plan & {
|
|
client: commands: sops: {
|
|
name: "sops"
|
|
args: ["-d", "./secrets.yaml"]
|
|
stdout: dagger.#Secret
|
|
}
|
|
|
|
actions: {
|
|
// Makes the yaml keys easily accessible
|
|
secrets: core.#DecodeSecret & {
|
|
input: client.commands.sops.stdout
|
|
format: "yaml"
|
|
}
|
|
|
|
run: docker.#Run & {
|
|
mounts: secret: {
|
|
dest: "/run/secrets/token"
|
|
contents: secrets.output.myToken
|
|
}
|
|
// Do something with `/run/secrets/token`
|
|
}
|
|
}
|
|
}
|