diff --git a/.drone.yml b/.drone.yml index 872c495..227e76d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -81,18 +81,6 @@ volumes: kind: pipeline name: upload -environment: - B2_ACCOUNT: - from_secret: b2_account - B2_BUCKET_ID: - from_secret: b2_bucketId - B2_TOKEN: - from_secret: b2_token - B2_KEY_ID: - from_secret: b2_keyId - B2_KEY: - from_secret: b2_key - platform: os: linux arch: amd64 @@ -121,6 +109,18 @@ steps: volumes: - name: cache path: /run/cache + environment: + B2_ACCOUNT: + from_secret: b2_account + B2_BUCKET_ID: + from_secret: b2_bucketId + B2_TOKEN: + from_secret: b2_token + B2_KEY_ID: + from_secret: b2_keyId + B2_KEY: + from_secret: b2_key + commands: - ls -la /run/cache - export FILE_TO_UPLOAD=$(ls /run/cache | head -1)