Hello,
I'm currently using the Dagger CLI to set a secret and retrieve it, but I encountered an error saying "Error: secret not found." I've included the script I'm using below. Could you please help me identify what might be going wrong?
Thank you!
#!/usr/bin/env bash
REGISTRY_PASSWORD="monsecret"
registry_secret_id=$(dagger query <<QUERY | jq -r '.setSecret.id'
{
setSecret(name: "registry-password", plaintext: "$REGISTRY_PASSWORD") {
id
}
}
QUERY
)
echo -e "$registry_secret_id"
dagger query <<QUERY
{
secret(id: "$registry_secret_id") {
plaintext
}
}
QUERY