From 53c972b7ec7e65d2fee5e5c99650e219fa0d0a64 Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 26 Mar 2023 18:18:05 +0200 Subject: [PATCH] Add caching to build pipeline --- .drone.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.drone.yml b/.drone.yml index 0bee471..077acc8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -5,11 +5,33 @@ type: docker name: default steps: + - name: restore cache + image: meltwater/drone-cache + environment: &cache_env + SFTP_HOST: u194355-sub5.your-storagebox.de + SFTP_PORT: '23' + settings: + <<: &cache_settings + backend: sftp + mount: + - resources/_gen + public_key_file: + from_secret: cache_ssh_key + username: u194355-sub5 + restore: yes + - name: build image: klakegg/hugo:ext-alpine-ci commands: - hugo --baseURL="https://staging.www.kontakt-bamberg.de/" + - name: rebuild cache + image: meltwater/drone-cache + environment: *cache_env + settings: + <<: *cache_settings + rebuild: yes + - name: deploy image: appleboy/drone-scp settings: