Skip to content

Commit

Permalink
add volumes for puppeteer cache
Browse files Browse the repository at this point in the history
  • Loading branch information
AgnesToulet committed Nov 10, 2023
1 parent b5a6072 commit 34bf09f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ steps:
- grabpl
image: grafana/grafana-plugin-ci:1.9.0
name: yarn-install
volumes:
- name: cache
path: /root/.cache
- commands:
- . ~/.init-nvm.sh
- yarn build
Expand All @@ -56,6 +59,9 @@ steps:
- yarn-build
image: grafana/grafana-plugin-ci:1.9.0
name: yarn-test
volumes:
- name: cache
path: /root/.cache
- commands:
- . ~/.init-nvm.sh
- echo "Starting veracode scan..."
Expand Down Expand Up @@ -174,6 +180,9 @@ steps:
- grabpl
image: grafana/grafana-plugin-ci:1.9.0
name: yarn-install
volumes:
- name: cache
path: /root/.cache
- commands:
- . ~/.init-nvm.sh
- yarn build
Expand All @@ -193,6 +202,9 @@ steps:
- yarn-build
image: grafana/grafana-plugin-ci:1.9.0
name: yarn-test
volumes:
- name: cache
path: /root/.cache
- commands:
- . ~/.init-nvm.sh
- echo "Starting veracode scan..."
Expand Down Expand Up @@ -327,6 +339,9 @@ steps:
- grabpl
image: grafana/grafana-plugin-ci:1.9.0
name: yarn-install
volumes:
- name: cache
path: /root/.cache
- commands:
- . ~/.init-nvm.sh
- yarn build
Expand All @@ -346,6 +361,9 @@ steps:
- yarn-build
image: grafana/grafana-plugin-ci:1.9.0
name: yarn-test
volumes:
- name: cache
path: /root/.cache
- commands:
- . ~/.init-nvm.sh
- echo "Starting veracode scan..."
Expand Down Expand Up @@ -503,6 +521,6 @@ kind: secret
name: srcclr_api_token
---
kind: signature
hmac: c3b92d90ab01066eec99e315376fcfa46abb9e1f5e00c81abd8ad0437ca96db5
hmac: cf392c102f7e26988749856bf88ebc0a839646ef61bb124a49f68f00b69f2561

...
8 changes: 8 additions & 0 deletions scripts/drone/common.star
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ def install_deps_step():
'depends_on': [
'grabpl',
],
'volumes': [{
'name': 'cache',
'path': '/root/.cache',
}]
}

def build_step():
Expand Down Expand Up @@ -120,4 +124,8 @@ def tests_step():
'. ~/.init-nvm.sh',
'yarn test',
],
'volumes': [{
'name': 'cache',
'path': '/root/.cache',
}]
}

0 comments on commit 34bf09f

Please sign in to comment.