lemmy-ui/.woodpecker.yml
Dessalines 140ff8271c
Move to pnpm (#2345)
* Switch from yarn to pnpm.

* Moving from yarn to pnpm.

* Try 2

* Try 3

* Try 4

* Try 5

* Try 6

* Adding qs.

* Try corepack.

* Remove comment.

* Adding prebuild:dev.

* Some fixes.

* Fixing up husky.

* Fixing up version and others.
2024-01-28 22:09:08 -05:00

68 lines
1.4 KiB
YAML

variables:
- &install_pnpm "corepack enable pnpm"
steps:
fetch_git_submodules:
image: node:20-alpine
commands:
- apk add git
- git submodule init
- git submodule update --recursive --remote
install:
image: node:20-alpine
commands:
- *install_pnpm
- pnpm i
lint:
image: node:20-alpine
commands:
- *install_pnpm
- pnpm lint
build_dev:
image: node:20-alpine
commands:
- *install_pnpm
- pnpm prebuild:dev
- pnpm build:dev
publish_release_docker:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: dessalines/lemmy-ui
dockerfile: Dockerfile
platforms: linux/amd64, linux/arm64
tag: ${CI_COMMIT_TAG}
when:
event: tag
nightly_build:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]
settings:
repo: dessalines/lemmy-ui
dockerfile: Dockerfile
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:
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