ci: install cargo before installing pre-commimt hooks
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
cătălin 2022-10-05 17:34:18 +02:00
commit 020e421ef7
Signed by: catalin
GPG key ID: 0178DF42F43E5FD2

View file

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