blog/.gitlab-ci.yml
Matej Focko 9c9cb03731
ci: auto-delete old artifacts
Signed-off-by: Matej Focko <me@mfocko.xyz>
2023-08-18 12:36:12 +02:00

25 lines
504 B
YAML

image: node:current-alpine
cache:
key:
files:
- yarn.lock
paths:
- .yarn-cache/
before_script:
- echo 'yarn-offline-mirror ".yarn-cache/"' >> .yarnrc
- echo 'yarn-offline-mirror-pruning true' >> .yarnrc
- yarn install --frozen-lockfile --no-progress
- apk update && apk add make graphviz zip
pages:
script:
- make assets
- make build-poincare
artifacts:
paths:
- public
expire_in: 1 week
rules:
- if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH