2023-08-26 04:40:38 +00:00
|
|
|
steps:
|
2023-03-27 01:59:33 +00:00
|
|
|
fetch_git_submodules:
|
2023-10-20 00:43:59 +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
|
|
|
|
# - git fetch --tags
|
|
|
|
|
|
|
|
yarn:
|
2023-10-20 00:43:59 +00:00
|
|
|
image: node:20-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
yarn_lint:
|
2023-10-20 00:43:59 +00:00
|
|
|
image: node:20-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
|
|
|
|
yarn_build_dev:
|
2023-10-20 00:43:59 +00:00
|
|
|
image: node:20-alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
|
|
|
- yarn build:dev
|
|
|
|
|
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-06-14 12:20:40 +00:00
|
|
|
platforms: linux/amd64
|
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
|
|
|
|
platforms: linux/amd64
|
|
|
|
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
|