feat: Ajout des sources dans le cache
continuous-integration/drone/push Build encountered an error Details

This commit is contained in:
Simon 2024-02-19 15:00:54 +01:00
parent ae17bfc36a
commit 870fada7fc
1 changed files with 26 additions and 1 deletions

View File

@ -40,9 +40,17 @@ type: docker
name: prod name: prod
clone: clone:
depth: 1 disable: true
steps: steps:
- name: clone
image: alpine/git
commands:
- git clone --recursive $DRONE_REPO_LINK .
volumes:
- name: source
path: /drone/src/
- name: install submodule - name: install submodule
image: drone/git image: drone/git
commands: commands:
@ -106,13 +114,27 @@ volumes:
- name: hugo-resources - name: hugo-resources
host: host:
path: /tmp/drone/cache/weko/cremeaux/resources path: /tmp/drone/cache/weko/cremeaux/resources
- name: source
host:
path: /tmp/drone/cache/weko/cremeaux/source
--- ---
kind: pipeline kind: pipeline
type: docker type: docker
name: staging name: staging
clone:
disable: true
steps: steps:
- name: clone
image: alpine/git
commands:
- git clone --recursive $DRONE_REPO_LINK .
volumes:
- name: source
path: /drone/src/
- name: install submodule - name: install submodule
image: drone/git image: drone/git
commands: commands:
@ -165,3 +187,6 @@ volumes:
- name: hugo-resources - name: hugo-resources
host: host:
path: /tmp/drone/cache/weko/staging.cremeaux/resources path: /tmp/drone/cache/weko/staging.cremeaux/resources
- name: source
host:
path: /tmp/drone/cache/weko/staging.cremeaux/source