From 266ef681494160919a366644e91895dfd345a952 Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Tue, 4 Jun 2024 17:09:35 -0700 Subject: [PATCH] Testing pulling in Kubernetes secrets --- .drone.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.drone.yml b/.drone.yml index c93f7e8..86895a8 100644 --- a/.drone.yml +++ b/.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