improve CI configuration #16

Merged
joao.dubas merged 13 commits from jpd-improve-ci into main 2022-04-26 00:01:43 +00:00
Showing only changes of commit b205d979ae - Show all commits

View File

@ -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