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
|
kind: pipeline
|
||||||
name: hello-world
|
name: hello-world
|
||||||
type: docker
|
type: docker
|
||||||
@ -6,6 +12,7 @@ platform:
|
|||||||
os: linux
|
os: linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: block-posts-containing-tk
|
- name: block-posts-containing-tk
|
||||||
image: busybox
|
image: busybox
|
||||||
@ -94,3 +101,12 @@ steps:
|
|||||||
from_secret: telegram_token
|
from_secret: telegram_token
|
||||||
to:
|
to:
|
||||||
from_secret: telegram_convo_id
|
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