mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
added drone caching to build
This commit is contained in:
parent
5cd1064140
commit
ea16183117
1 changed files with 22 additions and 35 deletions
57
.drone.yml
57
.drone.yml
|
@ -7,22 +7,17 @@ platform:
|
||||||
arch: amd64
|
arch: amd64
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# - name: restore-cache-with-filesystem
|
- name: restore-cache
|
||||||
# image: meltwater/drone-cache:dev
|
image: drillster/drone-volume-cache
|
||||||
# when:
|
restore: true
|
||||||
# branch:
|
when:
|
||||||
# - develop
|
branch:
|
||||||
# pull: true
|
- master
|
||||||
# settings:
|
- develop
|
||||||
# backend: "filesystem"
|
mount:
|
||||||
# restore: true
|
- ./node_modules
|
||||||
# cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
volumes:
|
||||||
# archive_format: "gzip"
|
- /tmp/cache:/cache
|
||||||
# mount:
|
|
||||||
# - '/app'
|
|
||||||
# volumes:
|
|
||||||
# - name: cache
|
|
||||||
# path: /tmp/cache
|
|
||||||
- name: build-master
|
- name: build-master
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
when:
|
when:
|
||||||
|
@ -77,22 +72,14 @@ steps:
|
||||||
from_secret: global_docker_registry
|
from_secret: global_docker_registry
|
||||||
repo:
|
repo:
|
||||||
from_secret: docker_repo
|
from_secret: docker_repo
|
||||||
# - name: rebuild-cache-with-filesystem
|
- name: rebuild-cache
|
||||||
# image: meltwater/drone-cache:dev
|
image: drillster/drone-volume-cache
|
||||||
# when:
|
when:
|
||||||
# branch:
|
branch:
|
||||||
# - develop
|
- master
|
||||||
# pull: true
|
- develop
|
||||||
# settings:
|
rebuild: true
|
||||||
# backend: "filesystem"
|
mount:
|
||||||
# rebuild: true
|
- ./node_modules
|
||||||
# cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
|
volumes:
|
||||||
# archive_format: "gzip"
|
- /tmp/cache:/cache
|
||||||
# mount:
|
|
||||||
# - '/app'
|
|
||||||
# volumes:
|
|
||||||
# - name: cache
|
|
||||||
# path: /tmp/cache
|
|
||||||
#volumes:
|
|
||||||
# - name: cache
|
|
||||||
# temp: {}
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue