From b205d979ae9cfe7be8caec4e4fd7c143f285c29b Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Mon, 25 Apr 2022 17:20:22 +0000 Subject: [PATCH] wip: use minio to cache dependencies --- .drone.yml | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 5d1a62e..929f247 100644 --- a/.drone.yml +++ b/.drone.yml @@ -19,17 +19,20 @@ steps: - name: restore cache 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: archive_format: gzip - backend: filesystem + bucket: trainlog_cache cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}' + endpoint: minio:9000 mount: - _build - deps restore: true - volumes: - - name: cache - path: /tmp/cache - name: test image: 'elixir:1.13.4' @@ -50,18 +53,21 @@ steps: - name: rebuild cache 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: archive_format: gzip - backend: filesystem + bucket: trainlog_cache cache_key: '{{ .Repo.Name }}-{{ checksum "mix.lock" }}' + endpoint: minio:9000 mount: - _build - deps rebuild: true exit_code: true - volumes: - - name: cache - path: /tmp/cache services: - name: db