mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-11-24 06:25:46 +00:00
feat: cache builds
This commit is contained in:
parent
e5690ff4ea
commit
37799184bf
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user