Fix configuration for dependency caching
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2020-12-06 16:52:46 +01:00
parent fe7779e33c
commit 72ae0b7e5e
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 33 additions and 16 deletions

View File

@ -14,11 +14,12 @@ steps:
- name: restore-cache
image: meltwater/drone-cache:dev
pull: true
settings:
access-key:
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
secret-key:
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
settings:
restore: true
bucket: kolaente.dev-drone-cache
endpoint: https://s3.fr-par.scw.cloud
@ -27,7 +28,7 @@ steps:
mount:
- '/cache'
- name: build
- name: dependencies
image: node:13
pull: true
group: build-static
@ -35,24 +36,16 @@ steps:
YARN_CACHE_FOLDER: /cache
commands:
- yarn --frozen-lockfile --network-timeout 100000
- yarn run lint
- yarn run build
- name: test
image: node:13
pull: true
group: build-static
commands:
- yarn test
- name: rebuild-cache
image: meltwater/drone-cache:dev
pull: true
settings:
access-key:
environment:
AWS_ACCESS_KEY_ID:
from_secret: aws_access_key_id
secret-key:
AWS_SECRET_ACCESS_KEY:
from_secret: aws_secret_access_key
settings:
rebuild: true
bucket: kolaente.dev-drone-cache
endpoint: https://s3.fr-par.scw.cloud
@ -60,6 +53,30 @@ steps:
path_style: true
mount:
- '/cache'
depends_on:
- dependencies
- name: build
image: node:13
pull: true
group: build-static
environment:
YARN_CACHE_FOLDER: /cache
commands:
- yarn run lint
- yarn run build
depends_on:
- dependencies
- name: test
image: node:13
pull: true
group: build-static
commands:
- yarn test
depends_on:
- dependencies
---
kind: pipeline
name: release-latest