2024-01-29 03:09:08 +00:00
|
|
|
variables:
|
|
|
|
- &install_pnpm "corepack enable pnpm"
|
|
|
|
|
2023-08-26 04:40:38 +00:00
|
|
|
steps:
|
2023-03-27 01:59:33 +00:00
|
|
|
fetch_git_submodules:
|
2024-11-02 11:05:46 +00:00
|
|
|
image: node:22-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
|
|
|
- apk add git
|
|
|
|
- git submodule init
|
|
|
|
- git submodule update --recursive --remote
|
2024-03-27 17:04:59 +00:00
|
|
|
when:
|
2024-04-04 23:59:13 +00:00
|
|
|
- event: [pull_request, tag]
|
2023-03-27 01:59:33 +00:00
|
|
|
|
2024-01-29 03:09:08 +00:00
|
|
|
install:
|
2024-11-02 11:05:46 +00:00
|
|
|
image: node:22-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
2024-01-29 03:09:08 +00:00
|
|
|
- *install_pnpm
|
|
|
|
- pnpm i
|
2024-03-27 17:04:59 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2023-03-27 01:59:33 +00:00
|
|
|
|
2024-01-29 03:09:08 +00:00
|
|
|
lint:
|
2024-11-02 11:05:46 +00:00
|
|
|
image: node:22-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
2024-01-29 03:09:08 +00:00
|
|
|
- *install_pnpm
|
|
|
|
- pnpm lint
|
2024-03-27 17:04:59 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2023-03-27 01:59:33 +00:00
|
|
|
|
2024-01-29 03:09:08 +00:00
|
|
|
build_dev:
|
2024-11-02 11:05:46 +00:00
|
|
|
image: node:22-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
2024-01-29 03:09:08 +00:00
|
|
|
- *install_pnpm
|
|
|
|
- pnpm prebuild:dev
|
|
|
|
- pnpm build:dev
|
2024-03-27 17:04:59 +00:00
|
|
|
when:
|
|
|
|
- event: pull_request
|
2023-03-27 01:59:33 +00:00
|
|
|
|
2023-06-14 12:20:40 +00:00
|
|
|
publish_release_docker:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
2023-03-27 01:59:33 +00:00
|
|
|
settings:
|
|
|
|
repo: dessalines/lemmy-ui
|
|
|
|
dockerfile: Dockerfile
|
2024-09-19 03:30:48 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-11-27 12:32:04 +00:00
|
|
|
platforms: linux/amd64, linux/arm64
|
2023-10-05 19:41:04 +00:00
|
|
|
tag: ${CI_COMMIT_TAG}
|
2023-03-27 01:59:33 +00:00
|
|
|
when:
|
2024-03-27 17:04:59 +00:00
|
|
|
- event: tag
|
2023-06-28 20:55:04 +00:00
|
|
|
|
|
|
|
nightly_build:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
settings:
|
|
|
|
repo: dessalines/lemmy-ui
|
|
|
|
dockerfile: Dockerfile
|
2024-09-19 03:30:48 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-11-27 12:32:04 +00:00
|
|
|
platforms: linux/amd64, linux/arm64
|
2023-06-28 20:55:04 +00:00
|
|
|
tag: dev
|
|
|
|
when:
|
2024-03-27 17:04:59 +00:00
|
|
|
- event: cron
|
2023-08-26 04:40:38 +00:00
|
|
|
|
|
|
|
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:
|
2024-04-04 12:28:40 +00:00
|
|
|
- event: [pull_request, tag]
|
2024-03-27 17:04:59 +00:00
|
|
|
status: failure
|
2023-08-26 04:40:38 +00:00
|
|
|
|
|
|
|
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
|