2024-01-28 17:30:12 +00:00
|
|
|
variables:
|
2024-01-28 17:31:06 +00:00
|
|
|
- &install_pnpm: wget -qO- https://get.pnpm.io/install.sh | ENV="$HOME/.shrc" SHELL="$(which sh)" sh -
|
2024-01-28 17:30:12 +00:00
|
|
|
|
2023-08-26 04:40:38 +00:00
|
|
|
steps:
|
2023-03-27 01:59:33 +00:00
|
|
|
fetch_git_submodules:
|
2023-10-20 00:47:28 +00:00
|
|
|
image: node:20-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
|
|
|
- apk add git
|
|
|
|
- git submodule init
|
|
|
|
- git submodule update --recursive --remote
|
2024-01-28 17:30:12 +00:00
|
|
|
#- source /root/.shrc
|
2023-03-27 01:59:33 +00:00
|
|
|
|
2024-01-28 17:18:00 +00:00
|
|
|
install:
|
2023-10-20 00:47:28 +00:00
|
|
|
image: node:20-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
2024-01-28 17:30:12 +00:00
|
|
|
- *install_pnpm
|
2024-01-28 17:18:00 +00:00
|
|
|
- pnpm i
|
2023-03-27 01:59:33 +00:00
|
|
|
|
2024-01-28 17:18:00 +00:00
|
|
|
lint:
|
2023-10-20 00:47:28 +00:00
|
|
|
image: node:20-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
2024-01-28 17:30:12 +00:00
|
|
|
- *install_pnpm
|
2024-01-28 17:18:00 +00:00
|
|
|
- pnpm lint
|
2023-03-27 01:59:33 +00:00
|
|
|
|
2024-01-28 17:18:00 +00:00
|
|
|
build_dev:
|
2023-10-20 00:47:28 +00:00
|
|
|
image: node:20-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
2024-01-28 17:30:12 +00:00
|
|
|
- *install_pnpm
|
2024-01-28 17:18:00 +00:00
|
|
|
- pnpm build:dev
|
2023-03-27 01:59:33 +00:00
|
|
|
|
2023-06-14 12:20:40 +00:00
|
|
|
publish_release_docker:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
secrets: [docker_username, docker_password]
|
2023-03-27 01:59:33 +00:00
|
|
|
settings:
|
|
|
|
repo: dessalines/lemmy-ui
|
|
|
|
dockerfile: Dockerfile
|
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:
|
|
|
|
event: tag
|
2023-06-28 20:55:04 +00:00
|
|
|
|
|
|
|
nightly_build:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
secrets: [docker_username, docker_password]
|
|
|
|
settings:
|
|
|
|
repo: dessalines/lemmy-ui
|
|
|
|
dockerfile: Dockerfile
|
2023-11-27 12:32:04 +00:00
|
|
|
platforms: linux/amd64, linux/arm64
|
2023-06-28 20:55:04 +00:00
|
|
|
tag: dev
|
|
|
|
when:
|
|
|
|
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:
|
|
|
|
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
|