ci: install cargo before installing pre-commimt hooks
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
8ab990535a
commit
020e421ef7
1 changed files with 5 additions and 4 deletions
|
|
@ -9,7 +9,7 @@ trigger:
|
||||||
- refs/tags/v*
|
- refs/tags/v*
|
||||||
environment:
|
environment:
|
||||||
REGISTRY_HOST: https://git.roboces.dev
|
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
|
PRE_COMMIT_HOME: /drone/src/.cache/.pre-commit
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -23,7 +23,7 @@ steps:
|
||||||
from_secret: AWS_SECRET_ACCESS_KEY
|
from_secret: AWS_SECRET_ACCESS_KEY
|
||||||
settings:
|
settings:
|
||||||
restore: true
|
restore: true
|
||||||
bucket: halig-cache
|
bucket: ports-cache
|
||||||
endpoint: https://s3.fukurokuju.dev
|
endpoint: https://s3.fukurokuju.dev
|
||||||
region: us-east-1
|
region: us-east-1
|
||||||
path_style: true
|
path_style: true
|
||||||
|
|
@ -35,9 +35,10 @@ steps:
|
||||||
pull: true
|
pull: true
|
||||||
image: git.roboces.dev/catalin/poetry:beta
|
image: git.roboces.dev/catalin/poetry:beta
|
||||||
commands:
|
commands:
|
||||||
- apk add linux-headers
|
- apk add linux-headers cargo
|
||||||
- poetry config virtualenvs.in-project 1
|
- poetry config virtualenvs.in-project 1
|
||||||
- poetry install --with linters,test
|
- poetry install --with linters,test
|
||||||
|
- .venv/bin/pre-commit install-hooks
|
||||||
depends_on:
|
depends_on:
|
||||||
- restore_cache
|
- restore_cache
|
||||||
|
|
||||||
|
|
@ -83,7 +84,7 @@ steps:
|
||||||
settings:
|
settings:
|
||||||
rebuild: true
|
rebuild: true
|
||||||
path_style: true
|
path_style: true
|
||||||
bucket: halig-cache
|
bucket: ports-cache
|
||||||
endpoint: https://s3.fukurokuju.dev
|
endpoint: https://s3.fukurokuju.dev
|
||||||
region: us-east-1
|
region: us-east-1
|
||||||
mount:
|
mount:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue