website/.drone.yml
renovate 6caf32aaf9
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update node.js to v22
2024-10-29 00:23:29 +00:00

62 lines
1.2 KiB
YAML

kind: pipeline
name: build
trigger:
branch:
include:
- main
event:
include:
- push
- pull_request
steps:
- name: dependencies
image: node:22-alpine
pull: always
environment:
PNPM_CACHE_FOLDER: .cache/pnpm
commands:
- corepack enable && pnpm config set store-dir .cache/pnpm
- pnpm install --frozen-lockfile --fetch-timeout 100000
- name: lint
image: node:22-alpine
pull: always
environment:
PNPM_CACHE_FOLDER: .cache/pnpm
commands:
- corepack enable && pnpm config set store-dir .cache/pnpm
- pnpm run lint
depends_on:
- dependencies
- name: build
image: node:22-alpine
pull: always
environment:
PNPM_CACHE_FOLDER: .cache/pnpm
commands:
- corepack enable && pnpm config set store-dir .cache/pnpm
- pnpm run build
depends_on:
- dependencies
- name: docker
image: plugins/docker
pull: true
depends_on:
- lint
- build
settings:
username:
from_secret: docker_username_vikunjadevuser
password:
from_secret: docker_password_vikunjadevuser
repo: vikunja/website
tags:
- next
when:
event: [ push ]
branch: [ main ]