-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.drone.yml
61 lines (56 loc) · 1.23 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
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 ]