2023-08-07 23:59:17 +00:00
|
|
|
steps:
|
2023-03-27 01:59:33 +00:00
|
|
|
fetch_git_submodules:
|
2023-06-14 12:20:40 +00:00
|
|
|
image: node: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-06-14 12:20:40 +00:00
|
|
|
image: node:alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
yarn_lint:
|
2023-06-14 12:20:40 +00:00
|
|
|
image: node:alpine
|
2023-03-27 01:59:33 +00:00
|
|
|
commands:
|
|
|
|
- yarn lint
|
|
|
|
|
|
|
|
yarn_build_dev:
|
2023-06-14 12:20:40 +00:00
|
|
|
image: node: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-03-27 01:59:33 +00:00
|
|
|
auto_tag: true
|
|
|
|
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-07 23:59:17 +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
|