Testing pulling in Kubernetes secrets

This commit is contained in:
Jack Jackson 2024-06-04 17:09:35 -07:00
parent 0c54979ee7
commit 266ef68149

View File

@ -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