mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 12:21:13 +00:00
Nutomic
a4b09b14e4
* Dont push to :latest docker tag Same as https://github.com/LemmyNet/lemmy/pull/4016 * Adding tag. --------- Co-authored-by: Dessalines <tyhou13@gmx.com>
61 lines
1.3 KiB
YAML
61 lines
1.3 KiB
YAML
steps:
|
|
fetch_git_submodules:
|
|
image: node:alpine
|
|
commands:
|
|
- apk add git
|
|
- git submodule init
|
|
- git submodule update --recursive --remote
|
|
# - git fetch --tags
|
|
|
|
yarn:
|
|
image: node:alpine
|
|
commands:
|
|
- yarn
|
|
|
|
yarn_lint:
|
|
image: node:alpine
|
|
commands:
|
|
- yarn lint
|
|
|
|
yarn_build_dev:
|
|
image: node:alpine
|
|
commands:
|
|
- yarn build:dev
|
|
|
|
publish_release_docker:
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
secrets: [docker_username, docker_password]
|
|
settings:
|
|
repo: dessalines/lemmy-ui
|
|
dockerfile: Dockerfile
|
|
platforms: linux/amd64
|
|
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
|
|
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:
|
|
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
|