Add caching to build pipeline
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
139ed0da5f
commit
53c972b7ec
22
.drone.yml
22
.drone.yml
|
@ -5,11 +5,33 @@ type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
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
|
- name: build
|
||||||
image: klakegg/hugo:ext-alpine-ci
|
image: klakegg/hugo:ext-alpine-ci
|
||||||
commands:
|
commands:
|
||||||
- hugo --baseURL="https://staging.www.kontakt-bamberg.de/"
|
- 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
|
- name: deploy
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
settings:
|
settings:
|
||||||
|
|
Loading…
Reference in New Issue