From 317efc2af1e6d44d4a117e61558902f511f58f5f Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 26 Mar 2023 18:30:51 +0200 Subject: [PATCH] Fix .drone.yml again --- .drone.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8f8c13d..3512a90 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,6 +5,15 @@ type: docker name: default steps: + - name: load cache ssh key + image: alpine:3.17 + commands: + - mkdir -p .ssh + - echo "$CACHE_SSH_KEY" > .ssh/id_cache + environment: + CACHE_SSH_KEY: + from_secret: cache_ssh_key + - name: restore cache image: meltwater/drone-cache environment: &cache_env @@ -16,8 +25,7 @@ steps: backend: sftp mount: - resources/_gen - public_key_file: - from_secret: cache_ssh_key + public_key_file: .ssh/id_cache username: u194355-sub5 restore: yes