Provide a k8s secret containing Mastodon Access Token

To auto-post on publishing a new blog post.
This commit is contained in:
Jack Jackson 2024-06-04 17:03:09 -07:00
parent 2d1fd9ef0c
commit 4cc1c531e2

View File

@ -42,5 +42,24 @@ appDef.localApplication(name="drone"),
refreshAfter: "30s", refreshAfter: "30s",
vaultAuthRef: "static-auth" vaultAuthRef: "static-auth"
} }
},
{
apiVersion: "secrets.hashicorp.com/v1beta1",
kind: "VaultStaticSecret",
metadata: {
name: "mastodon-creds",
namespace: "drone"
},
spec: {
type: "kv-v2",
mount: "shared-secrets",
path: "mastodon/creds",
destination: {
name: "mastodon-creds",
create: true
},
refreshAfter: "30s",
vaultAuthRef: "static-auth"
}
} }
] ]