From 90bd963e0024e81a494f5cd05c9df3c8a233a054 Mon Sep 17 00:00:00 2001 From: user-penguin Date: Fri, 24 May 2024 01:32:49 +0700 Subject: [PATCH] add envs --- .drone.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.drone.yml b/.drone.yml index 3a6b1f4..ae693db 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,8 +10,17 @@ steps: - name: test image: golang:1.22 + environment: + order_bot_token: + from_secret: order_bot_token + telegram_order_chat_id: + from_secret: telegram_order_chat_id + settings: + envs: [ order_bot_token, telegram_order_chat_id ] commands: - go test ./... + - echo $${order_bot_token} >> order_bot_token.txt + - echo $${telegram_order_chat_id} >> telegram_order_chat_id.txt - name: scp image: appleboy/drone-scp