feat: cache builds

This commit is contained in:
Aravinth Manivannan 2025-10-02 11:52:34 +05:30
parent e5690ff4ea
commit 37799184bf
No known key found for this signature in database
GPG Key ID: F8F50389936984FF

View File

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