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: steps:
frontend: frontend:
image: node:20 image: node:20
commands:
- make frontend
when: when:
- event: [pull_request, push] - event: [pull_request, push]
- branch: - branch:
include: [woodpecker-pipeline] include: [woodpecker-pipeline]
exclude: ["renovate/*"] exclude: ["renovate/*"]
commands: volumes:
# - apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends make - /var/lib/woodpercker-cache/mcaptcha/yarn:/root/.cache/yarn
# - yarn install && cd docs/openapi && yarn install
- make frontend
backend: backend:
image: rust:latest image: rust:latest
when:
- event: [pull_request, push]
- branch:
include: [woodpecker-pipeline]
exclude: ["renovate/*"]
commands: commands:
- cargo --version - cargo --version
- make cache-bust - 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