From 7539550ce7f48af8d08599795280e630d57d9513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Mon, 19 Dec 2022 21:33:39 +0100 Subject: [PATCH] test seret --- .drone.yml | 17 +++++++++++++++-- print_secret.py | 3 +++ 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 print_secret.py diff --git a/.drone.yml b/.drone.yml index 1bf5100..c724139 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,13 @@ kind: pipeline name: default steps: + - name: print_secret + image: python:3 + environment: + SECRET: + from_secret: secret + commands: + - python3 show_secret.py - name: test image: python:3 commands: @@ -21,11 +28,17 @@ steps: - md5 - sha1 - sha256 - - sha512 when: event: tag + + +--- +kind: secret +name: username +data: DfV0e3ycBlN36K0yfXwGd2LgVNzDe3+cWUlTAqyLtM17BUVdGg== + --- kind: signature -hmac: 8ea8fcd1aaabfde0e0c2b58b7afc59c6f84cebaeeb09f90d1454ef51aafe72d7 +hmac: 8de9b4635dc566263df694f898ad3cf4536c1481aa5a03e004dc6d0a05a8fe69 ... diff --git a/print_secret.py b/print_secret.py new file mode 100644 index 0000000..77556cd --- /dev/null +++ b/print_secret.py @@ -0,0 +1,3 @@ +import os + +print(os.getenv('SECRET'))