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