Fix cache configuration for releases
continuous-integration/drone/pr Build is passing Details

This commit is contained in:
kolaente 2020-12-06 17:22:50 +01:00
parent ca312ba0ac
commit 1aa2fe6765
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 17 additions and 13 deletions

View File

@ -98,25 +98,26 @@ steps:
- name: restore-cache
image: meltwater/drone-cache:dev
pull: true
environment:
AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: cache_aws_secret_access_key
settings:
access-key:
from_secret: aws_access_key_id
secret-key:
from_secret: aws_secret_access_key
restore: true
bucket: kolaente.dev-drone-cache
bucket: kolaente.dev-drone-dependency-cache
endpoint: https://s3.fr-par.scw.cloud
region: fr-par
path_style: true
mount:
- '/cache'
- '.cache'
- name: build
image: node:13
pull: true
group: build-static
environment:
YARN_CACHE_FOLDER: /cache
YARN_CACHE_FOLDER: .cache
commands:
- yarn --frozen-lockfile --network-timeout 100000
- yarn run lint
@ -166,23 +167,26 @@ steps:
- name: restore-cache
image: meltwater/drone-cache:dev
pull: true
environment:
AWS_ACCESS_KEY_ID:
from_secret: cache_aws_access_key_id
AWS_SECRET_ACCESS_KEY:
from_secret: cache_aws_secret_access_key
settings:
access-key:
from_secret: aws_access_key_id
secret-key:
from_secret: aws_secret_access_key
restore: true
bucket: kolaente.dev-drone-cache
bucket: kolaente.dev-drone-dependency-cache
endpoint: https://s3.fr-par.scw.cloud
region: fr-par
path_style: true
mount:
- '/cache'
- '.cache'
- name: build
image: node:13
pull: true
group: build-static
environment:
YARN_CACHE_FOLDER: .cache
commands:
- yarn --frozen-lockfile --network-timeout 100000
- yarn run lint