mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-11-26 15:35:48 +00:00
feat: cache builds
This commit is contained in:
parent
e5690ff4ea
commit
37799184bf
@ -1,24 +1,22 @@
|
||||
steps:
|
||||
frontend:
|
||||
image: node:20
|
||||
commands:
|
||||
- make frontend
|
||||
when:
|
||||
- event: [pull_request, push]
|
||||
- branch:
|
||||
include: [woodpecker-pipeline]
|
||||
exclude: ["renovate/*"]
|
||||
commands:
|
||||
# - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends make
|
||||
# - yarn install && cd docs/openapi && yarn install
|
||||
- make frontend
|
||||
volumes:
|
||||
- /var/lib/woodpercker-cache/mcaptcha/yarn:/root/.cache/yarn
|
||||
|
||||
backend:
|
||||
image: rust:latest
|
||||
when:
|
||||
- event: [pull_request, push]
|
||||
- branch:
|
||||
include: [woodpecker-pipeline]
|
||||
exclude: ["renovate/*"]
|
||||
commands:
|
||||
- cargo --version
|
||||
- make cache-bust
|
||||
- cargo build
|
||||
- cargo build --release
|
||||
volumes:
|
||||
- /var/lib/woodpercker-cache/mcaptcha/cargo:/root/.cargo
|
||||
- /var/lib/woodpercker-cache/mcaptcha/target:/woodpecker/src/git.batsense.net/mCaptcha/mCaptcha/target
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user