Compare commits
5 commits
2ab3332941
...
03da80cca5
| Author | SHA1 | Date | |
|---|---|---|---|
| 03da80cca5 | |||
| 83865dc186 | |||
| 57772a23b8 | |||
| 979d74e3be | |||
| 88fedd4c9f |
1 changed files with 2 additions and 36 deletions
38
.drone.yml
38
.drone.yml
|
|
@ -14,26 +14,6 @@ trigger:
|
||||||
- push
|
- push
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: compute cache key
|
|
||||||
image: docker.io/library/elixir:1.18.3-otp-27
|
|
||||||
commands:
|
|
||||||
- mix_lock_hash=$(sha256sum mix.lock | cut -d ' ' -f 1)
|
|
||||||
- echo "$DRONE_REPO_OWNER/$DRONE_REPO_NAME/$mix_lock_hash" >> .cache_key
|
|
||||||
# Print cache key for debugging
|
|
||||||
- cat .cache_key
|
|
||||||
|
|
||||||
- name: restore-cache
|
|
||||||
image: drillster/drone-volume-cache
|
|
||||||
settings:
|
|
||||||
restore: true
|
|
||||||
mount:
|
|
||||||
- ./deps
|
|
||||||
- ./_build
|
|
||||||
ttl: 30
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /cache
|
|
||||||
|
|
||||||
- name: lint
|
- name: lint
|
||||||
image: docker.io/library/elixir:1.18.3-otp-27
|
image: docker.io/library/elixir:1.18.3-otp-27
|
||||||
commands:
|
commands:
|
||||||
|
|
@ -79,25 +59,11 @@ steps:
|
||||||
commands:
|
commands:
|
||||||
# Install hex package manager
|
# Install hex package manager
|
||||||
- mix local.hex --force
|
- mix local.hex --force
|
||||||
|
# Fetch dependencies
|
||||||
|
- mix deps.get
|
||||||
# Run tests
|
# Run tests
|
||||||
- mix test
|
- mix test
|
||||||
|
|
||||||
- name: rebuild-cache
|
|
||||||
image: drillster/drone-volume-cache
|
|
||||||
settings:
|
|
||||||
rebuild: true
|
|
||||||
mount:
|
|
||||||
- ./deps
|
|
||||||
- ./_build
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
path: /cache
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
- name: cache
|
|
||||||
host:
|
|
||||||
path: /tmp/drone_cache
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue