1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

added drone caching to build

This commit is contained in:
Fedor Katurov 2022-03-15 12:26:54 +07:00
parent 5cd1064140
commit ea16183117

View file

@ -7,22 +7,17 @@ platform:
arch: amd64
steps:
# - name: restore-cache-with-filesystem
# image: meltwater/drone-cache:dev
# when:
# branch:
# - develop
# pull: true
# settings:
# backend: "filesystem"
# restore: true
# cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
# archive_format: "gzip"
# mount:
# - '/app'
# volumes:
# - name: cache
# path: /tmp/cache
- name: restore-cache
image: drillster/drone-volume-cache
restore: true
when:
branch:
- master
- develop
mount:
- ./node_modules
volumes:
- /tmp/cache:/cache
- name: build-master
image: plugins/docker
when:
@ -77,22 +72,14 @@ steps:
from_secret: global_docker_registry
repo:
from_secret: docker_repo
# - name: rebuild-cache-with-filesystem
# image: meltwater/drone-cache:dev
# when:
# branch:
# - develop
# pull: true
# settings:
# backend: "filesystem"
# rebuild: true
# cache_key: '{{ .Repo.Name }}_{{ checksum "package.json" }}_{{ checksum "yarn.lock" }}_{{ arch }}_{{ os }}'
# archive_format: "gzip"
# mount:
# - '/app'
# volumes:
# - name: cache
# path: /tmp/cache
#volumes:
# - name: cache
# temp: {}
- name: rebuild-cache
image: drillster/drone-volume-cache
when:
branch:
- master
- develop
rebuild: true
mount:
- ./node_modules
volumes:
- /tmp/cache:/cache