diff --git a/.drone.yml b/.drone.yml index 7ad91a2..3a2d114 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,8 +10,26 @@ services: POSTGRES_PASSWORD: postgres steps: + - name: restore_cache + # the `plugins` user seems to be owned by the drone organization + image: docker.io/plugins/cache:1.9 + pull: true + settings: + backend: "filesystem" + restore: true + cache_key: "volume" + archive_format: "gzip" + # filesystem_cache_root: "/tmp/cache" + mount: + - "_build" + volumes: + - name: cache + path: /tmp/cache + - name: check image: docker.io/library/elixir:1.18.3-otp-27 + depends_on: + - restore_cache commands: # Install hex package manager - mix local.hex --force @@ -48,7 +66,9 @@ steps: - name: test image: docker.io/library/elixir:1.18.3-otp-27 - - wait_for_postgres + depends_on: + - restore_cache + # - wait_for_postgres environment: MIX_ENV: test TEST_POSTGRES_HOST: postgres