-
Notifications
You must be signed in to change notification settings - Fork 332
/
.woodpecker.yml
82 lines (74 loc) · 1.74 KB
/
.woodpecker.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
variables:
- &install_pnpm "corepack enable pnpm"
steps:
fetch_git_submodules:
image: node:22-alpine
commands:
- apk add git
- git submodule init
- git submodule update --recursive --remote
when:
- event: [pull_request, tag]
install:
image: node:22-alpine
commands:
- *install_pnpm
- pnpm i
when:
- event: pull_request
lint:
image: node:22-alpine
commands:
- *install_pnpm
- pnpm lint
when:
- event: pull_request
build_dev:
image: node:22-alpine
commands:
- *install_pnpm
- pnpm prebuild:dev
- pnpm build:dev
when:
- event: pull_request
publish_release_docker:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: dessalines/lemmy-ui
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms: linux/amd64, linux/arm64
tag: ${CI_COMMIT_TAG}
when:
- event: tag
nightly_build:
image: woodpeckerci/plugin-docker-buildx
settings:
repo: dessalines/lemmy-ui
dockerfile: Dockerfile
username:
from_secret: docker_username
password:
from_secret: docker_password
platforms: linux/amd64, linux/arm64
tag: dev
when:
- event: cron
notify_on_failure:
image: alpine:3
commands:
- apk add curl
- "curl -d'Lemmy-UI CI build failed: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
when:
- event: [pull_request, tag]
status: failure
notify_on_tag_deploy:
image: alpine:3
commands:
- apk add curl
- "curl -d'lemmy-ui:${CI_COMMIT_TAG} deployed' ntfy.sh/lemmy_drone_ci"
when:
event: tag