wip: use minio to cache dependencies
Some checks failed
continuous-integration/drone/pr Build is failing
Some checks failed
continuous-integration/drone/pr Build is failing
This commit is contained in:
parent
6bf5e51493
commit
b205d979ae
22
.drone.yml
22
.drone.yml
@ -19,17 +19,20 @@ steps:
|
|||||||
|
|
||||||
- name: restore cache
|
- name: restore cache
|
||||||
image: 'meltwater/drone-cache:v1.3.0'
|
image: 'meltwater/drone-cache:v1.3.0'
|
||||||
|
environment:
|
||||||
|
AWS_ACCESS_KEY_ID:
|
||||||
|
from_secret: minio_user
|
||||||
|
AWS_SECRET_ACCESS_KEY:
|
||||||
|
from_secret: minio_password
|
||||||
settings:
|
settings:
|
||||||
archive_format: gzip
|
archive_format: gzip
|
||||||
backend: filesystem
|
bucket: trainlog_cache
|
||||||
cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}'
|
cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}'
|
||||||
|
endpoint: minio:9000
|
||||||
mount:
|
mount:
|
||||||
- _build
|
- _build
|
||||||
- deps
|
- deps
|
||||||
restore: true
|
restore: true
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: 'elixir:1.13.4'
|
image: 'elixir:1.13.4'
|
||||||
@ -50,18 +53,21 @@ steps:
|
|||||||
|
|
||||||
- name: rebuild cache
|
- name: rebuild cache
|
||||||
image: 'meltwater/drone-cache:v1.3.0'
|
image: 'meltwater/drone-cache:v1.3.0'
|
||||||
|
environment:
|
||||||
|
AWS_ACCESS_KEY_ID:
|
||||||
|
from_secret: minio_user
|
||||||
|
AWS_SECRET_ACCESS_KEY:
|
||||||
|
from_secret: minio_password
|
||||||
settings:
|
settings:
|
||||||
archive_format: gzip
|
archive_format: gzip
|
||||||
backend: filesystem
|
bucket: trainlog_cache
|
||||||
cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}'
|
cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}'
|
||||||
|
endpoint: minio:9000
|
||||||
mount:
|
mount:
|
||||||
- _build
|
- _build
|
||||||
- deps
|
- deps
|
||||||
rebuild: true
|
rebuild: true
|
||||||
exit_code: true
|
exit_code: true
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /tmp/cache
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- name: db
|
- name: db
|
||||||
|
Loading…
x
Reference in New Issue
Block a user