From 020e421ef731ff47a83148046f68bfe117c6601c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C4=83t=C4=83lin?= Date: Wed, 5 Oct 2022 17:34:18 +0200 Subject: [PATCH] ci: install cargo before installing pre-commimt hooks --- .drone.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.drone.yml b/.drone.yml index 3153b47..7cebe87 100644 --- a/.drone.yml +++ b/.drone.yml @@ -9,7 +9,7 @@ trigger: - refs/tags/v* environment: REGISTRY_HOST: https://git.roboces.dev - DESTINATION_PREFIX: git.roboces.dev/catalin/halig + DESTINATION_PREFIX: git.roboces.dev/catalin/ports PRE_COMMIT_HOME: /drone/src/.cache/.pre-commit steps: @@ -23,7 +23,7 @@ steps: from_secret: AWS_SECRET_ACCESS_KEY settings: restore: true - bucket: halig-cache + bucket: ports-cache endpoint: https://s3.fukurokuju.dev region: us-east-1 path_style: true @@ -35,9 +35,10 @@ steps: pull: true image: git.roboces.dev/catalin/poetry:beta commands: - - apk add linux-headers + - apk add linux-headers cargo - poetry config virtualenvs.in-project 1 - poetry install --with linters,test + - .venv/bin/pre-commit install-hooks depends_on: - restore_cache @@ -83,7 +84,7 @@ steps: settings: rebuild: true path_style: true - bucket: halig-cache + bucket: ports-cache endpoint: https://s3.fukurokuju.dev region: us-east-1 mount: