Testing pulling in Kubernetes secrets
This commit is contained in:
parent
0c54979ee7
commit
266ef68149
16
.drone.yml
16
.drone.yml
@ -1,3 +1,9 @@
|
||||
kind: secret
|
||||
name: mastodon_access_token
|
||||
get:
|
||||
path: mastodon-creds
|
||||
name: access_token
|
||||
---
|
||||
kind: pipeline
|
||||
name: hello-world
|
||||
type: docker
|
||||
@ -6,6 +12,7 @@ platform:
|
||||
os: linux
|
||||
arch: arm64
|
||||
|
||||
|
||||
steps:
|
||||
- name: block-posts-containing-tk
|
||||
image: busybox
|
||||
@ -94,3 +101,12 @@ steps:
|
||||
from_secret: telegram_token
|
||||
to:
|
||||
from_secret: telegram_convo_id
|
||||
- name: mastodon_post
|
||||
image: curlimages/curl
|
||||
environment:
|
||||
MASTODON_TOKEN:
|
||||
from_secret: mastodon_access_token
|
||||
commands:
|
||||
- "env | grep 'MASTODON'"
|
||||
- echo "$${MASTODON_TOKEN}"
|
||||
- echo $MASTODON_TOKEN
|
||||
|
Loading…
x
Reference in New Issue
Block a user