2023-03-24 20:42:03 +00:00
|
|
|
pipeline:
|
|
|
|
fetch_git_submodules:
|
2021-03-15 17:18:03 +00:00
|
|
|
image: alpine/git
|
|
|
|
commands:
|
|
|
|
- git submodule init
|
2022-04-08 10:16:47 +00:00
|
|
|
- git submodule update --recursive
|
2021-03-15 17:18:03 +00:00
|
|
|
|
2023-03-28 13:19:16 +00:00
|
|
|
# yarn:
|
|
|
|
# image: node:14-alpine
|
|
|
|
# commands:
|
|
|
|
# - yarn
|
2021-03-15 17:18:03 +00:00
|
|
|
|
2023-03-28 13:19:16 +00:00
|
|
|
# yarn_lint:
|
|
|
|
# image: node:14-alpine
|
|
|
|
# commands:
|
|
|
|
# - yarn lint
|
2021-03-15 17:18:03 +00:00
|
|
|
|
2023-03-28 13:19:16 +00:00
|
|
|
# yarn_build_dev:
|
|
|
|
# image: node:14-alpine
|
|
|
|
# commands:
|
|
|
|
# - yarn build:dev
|
2021-03-15 17:18:03 +00:00
|
|
|
|
2023-03-24 20:42:03 +00:00
|
|
|
nightly_instance_crawl:
|
2022-05-23 19:12:06 +00:00
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
# libpq and openssl can probably be removed after lemmy dep is upgraded to 0.16.4+
|
|
|
|
- apk add cargo pkgconfig openssl openssl-dev libpq libpq-dev
|
|
|
|
- yarn crawl
|
|
|
|
when:
|
|
|
|
event:
|
|
|
|
- cron
|
|
|
|
|
2023-03-24 20:42:03 +00:00
|
|
|
nightly_build_and_push_to_docker_hub:
|
2023-03-28 13:19:16 +00:00
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
2021-03-15 17:18:03 +00:00
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
repo: dessalines/joinlemmy-site
|
2023-03-28 13:19:16 +00:00
|
|
|
tag: latest
|
2021-03-15 17:18:03 +00:00
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-03-28 13:19:16 +00:00
|
|
|
dry-run: true
|
|
|
|
platforms: linux/amd64
|
|
|
|
# when:
|
|
|
|
# event:
|
|
|
|
# - cron
|
2022-07-22 11:02:38 +00:00
|
|
|
|
2023-03-24 20:42:03 +00:00
|
|
|
release_instance_crawl:
|
2022-07-22 11:02:38 +00:00
|
|
|
image: node:14-alpine
|
|
|
|
commands:
|
|
|
|
# libpq and openssl can probably be removed after lemmy dep is upgraded to 0.16.4+
|
|
|
|
- apk add cargo pkgconfig openssl openssl-dev libpq libpq-dev
|
|
|
|
- yarn crawl
|
|
|
|
when:
|
2023-03-24 20:42:03 +00:00
|
|
|
event: tag
|
2022-07-22 11:02:38 +00:00
|
|
|
|
2023-03-24 20:42:03 +00:00
|
|
|
release_build_and_push_to_docker_hub:
|
2022-07-22 11:02:38 +00:00
|
|
|
image: plugins/docker
|
|
|
|
settings:
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
repo: dessalines/joinlemmy-site
|
|
|
|
tags:
|
|
|
|
- latest
|
|
|
|
username:
|
|
|
|
from_secret: docker_username
|
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
|
|
|
when:
|
2023-03-24 20:42:03 +00:00
|
|
|
event: tag
|
2023-02-12 13:38:54 +00:00
|
|
|
|
2023-03-24 20:42:03 +00:00
|
|
|
notify_on_failure:
|
2023-02-12 13:38:54 +00:00
|
|
|
image: alpine:3
|
|
|
|
commands:
|
|
|
|
- apk add curl
|
|
|
|
- "curl -d'joinlemmy-site build failed: ${DRONE_BUILD_LINK}' ntfy.sh/lemmy_drone_ci"
|
|
|
|
when:
|
|
|
|
status:
|
|
|
|
- failure
|
|
|
|
|
2023-03-24 20:42:03 +00:00
|
|
|
notify_on_tag_deploy:
|
2023-02-12 13:38:54 +00:00
|
|
|
image: alpine:3
|
|
|
|
commands:
|
|
|
|
- apk add curl
|
|
|
|
- "curl -d'joinlemmy-site:${DRONE_TAG} deployed' ntfy.sh/lemmy_drone_ci"
|
|
|
|
when:
|
2023-03-24 20:42:03 +00:00
|
|
|
event: tag
|