mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-24 07:16:19 +00:00
9aa1e06ae3
* Adding alt_text and custom_thumbnail to post form. * Adding htmlFor, and only show alt_text if its an image post. * Only show custom thumbnail url field when its not an image post.
77 lines
1.6 KiB
YAML
77 lines
1.6 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
|
|
when:
|
|
- event: [pull_request, tag]
|
|
|
|
install:
|
|
image: node:20-alpine
|
|
commands:
|
|
- *install_pnpm
|
|
- pnpm i
|
|
when:
|
|
- event: pull_request
|
|
|
|
lint:
|
|
image: node:20-alpine
|
|
commands:
|
|
- *install_pnpm
|
|
- pnpm lint
|
|
when:
|
|
- event: pull_request
|
|
|
|
build_dev:
|
|
image: node:20-alpine
|
|
commands:
|
|
- *install_pnpm
|
|
- pnpm prebuild:dev
|
|
- pnpm build:dev
|
|
when:
|
|
- event: pull_request
|
|
|
|
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:
|
|
- 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
|