From 2ebe06aa35392f7dbac078a1d37831d4f27a2a5f Mon Sep 17 00:00:00 2001 From: Kieran Date: Mon, 15 May 2023 11:16:47 +0100 Subject: [PATCH] chore: update drone.yml --- .drone.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 935892ab..c51025d6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,7 +7,11 @@ metadata: steps: - name: Push/Pull translations image: node:current-bullseye + volumes: + - name: cache + path: /docker-cache environment: + YARN_CACHE_FOLDER: /docker-cache/yarn TOKEN: from_secret: drone_gitea CTOKEN: @@ -26,6 +30,10 @@ steps: - git add . - git commit -a -m "Update translations" - git push -u origin lang +volumes: +- name: cache + claim: + name: docker-cache --- kind: pipeline type: kubernetes @@ -64,9 +72,18 @@ metadata: steps: - name: Test/Lint image: node:current-bullseye + volumes: + - name: cache + path: /docker-cache + environment: + YARN_CACHE_FOLDER: /docker-cache/yarn commands: - yarn install - yarn workspace @snort/nostr build - yarn workspace @snort/app test - yarn workspace @snort/app eslint - - yarn workspace @snort/app prettier --check . \ No newline at end of file + - yarn workspace @snort/app prettier --check . +volumes: +- name: cache + claim: + name: docker-cache \ No newline at end of file