Fix configuration for dependency caching
All checks were successful
continuous-integration/drone/pr Build is passing
All checks were successful
continuous-integration/drone/pr Build is passing
This commit is contained in:
parent
fe7779e33c
commit
72ae0b7e5e
49
.drone.yml
49
.drone.yml
|
@ -14,11 +14,12 @@ steps:
|
||||||
- name: restore-cache
|
- name: restore-cache
|
||||||
image: meltwater/drone-cache:dev
|
image: meltwater/drone-cache:dev
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
environment:
|
||||||
access-key:
|
AWS_ACCESS_KEY_ID:
|
||||||
from_secret: aws_access_key_id
|
from_secret: aws_access_key_id
|
||||||
secret-key:
|
AWS_SECRET_ACCESS_KEY:
|
||||||
from_secret: aws_secret_access_key
|
from_secret: aws_secret_access_key
|
||||||
|
settings:
|
||||||
restore: true
|
restore: true
|
||||||
bucket: kolaente.dev-drone-cache
|
bucket: kolaente.dev-drone-cache
|
||||||
endpoint: https://s3.fr-par.scw.cloud
|
endpoint: https://s3.fr-par.scw.cloud
|
||||||
|
@ -27,7 +28,7 @@ steps:
|
||||||
mount:
|
mount:
|
||||||
- '/cache'
|
- '/cache'
|
||||||
|
|
||||||
- name: build
|
- name: dependencies
|
||||||
image: node:13
|
image: node:13
|
||||||
pull: true
|
pull: true
|
||||||
group: build-static
|
group: build-static
|
||||||
|
@ -35,24 +36,16 @@ steps:
|
||||||
YARN_CACHE_FOLDER: /cache
|
YARN_CACHE_FOLDER: /cache
|
||||||
commands:
|
commands:
|
||||||
- yarn --frozen-lockfile --network-timeout 100000
|
- 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
|
- name: rebuild-cache
|
||||||
image: meltwater/drone-cache:dev
|
image: meltwater/drone-cache:dev
|
||||||
pull: true
|
pull: true
|
||||||
settings:
|
environment:
|
||||||
access-key:
|
AWS_ACCESS_KEY_ID:
|
||||||
from_secret: aws_access_key_id
|
from_secret: aws_access_key_id
|
||||||
secret-key:
|
AWS_SECRET_ACCESS_KEY:
|
||||||
from_secret: aws_secret_access_key
|
from_secret: aws_secret_access_key
|
||||||
|
settings:
|
||||||
rebuild: true
|
rebuild: true
|
||||||
bucket: kolaente.dev-drone-cache
|
bucket: kolaente.dev-drone-cache
|
||||||
endpoint: https://s3.fr-par.scw.cloud
|
endpoint: https://s3.fr-par.scw.cloud
|
||||||
|
@ -60,6 +53,30 @@ steps:
|
||||||
path_style: true
|
path_style: true
|
||||||
mount:
|
mount:
|
||||||
- '/cache'
|
- '/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
|
kind: pipeline
|
||||||
name: release-latest
|
name: release-latest
|
||||||
|
|
Reference in New Issue
Block a user