Fixing woodpecker. (#307)

This commit is contained in:
Dessalines 2024-03-27 10:23:12 -04:00 committed by GitHub
parent 1dccef11c7
commit c8a517327d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,23 +15,31 @@ steps:
- apk add git - apk add git
- git submodule init - git submodule init
- git submodule update - git submodule update
when:
- event: pull_request
prettier_markdown_check: prettier_markdown_check:
image: tmknom/prettier:3.0.0 image: tmknom/prettier:3.0.0
commands: commands:
- prettier -c . "!dist" "!lemmy-docs" "!lemmy-translations" "!joinlemmy-translations" "!lemmy-js-client" "!lemmy-stats-crawler" "!src/shared/instance_stats.ts" "!src/shared/donation_stats.ts" "!pnpm-lock.yaml" - prettier -c . "!dist" "!lemmy-docs" "!lemmy-translations" "!joinlemmy-translations" "!lemmy-js-client" "!lemmy-stats-crawler" "!src/shared/instance_stats.ts" "!src/shared/donation_stats.ts" "!pnpm-lock.yaml"
when:
- event: pull_request
install: install:
image: node:alpine image: node:alpine
commands: commands:
- *install_pnpm - *install_pnpm
- pnpm i - pnpm i
when:
- event: pull_request
lint: lint:
image: node:alpine image: node:alpine
commands: commands:
- *install_pnpm - *install_pnpm
- pnpm lint - pnpm lint
when:
- event: pull_request
build_dev: build_dev:
image: node:alpine image: node:alpine
@ -39,6 +47,8 @@ steps:
- *install_pnpm - *install_pnpm
- pnpm prebuild:dev - pnpm prebuild:dev
- pnpm build:dev - pnpm build:dev
when:
- event: pull_request
nightly_instance_crawl: nightly_instance_crawl:
image: node:alpine image: node:alpine
@ -48,8 +58,7 @@ steps:
- *install_pnpm - *install_pnpm
- pnpm crawl - pnpm crawl
when: when:
event: - event: cron
- cron
nightly_build_and_push_to_docker_hub: nightly_build_and_push_to_docker_hub:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
@ -62,8 +71,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
when: when:
event: - event: cron
- cron
release_instance_crawl: release_instance_crawl:
image: node:alpine image: node:alpine
@ -73,7 +81,7 @@ steps:
- *install_pnpm - *install_pnpm
- pnpm crawl - pnpm crawl
when: when:
event: tag - event: tag
release_build_and_push_to_docker_hub: release_build_and_push_to_docker_hub:
image: woodpeckerci/plugin-docker-buildx image: woodpeckerci/plugin-docker-buildx
@ -86,7 +94,7 @@ steps:
password: password:
from_secret: docker_password from_secret: docker_password
when: when:
event: tag - event: tag
notify_on_failure: notify_on_failure:
image: alpine:3 image: alpine:3
@ -94,8 +102,8 @@ steps:
- apk add curl - apk add curl
- "curl -d'joinlemmy-site build failed: ${DRONE_BUILD_LINK}' ntfy.sh/lemmy_drone_ci" - "curl -d'joinlemmy-site build failed: ${DRONE_BUILD_LINK}' ntfy.sh/lemmy_drone_ci"
when: when:
status: - event: pull_request
- failure status: failure
notify_on_tag_deploy: notify_on_tag_deploy:
image: alpine:3 image: alpine:3
@ -103,4 +111,4 @@ steps:
- apk add curl - apk add curl
- "curl -d'joinlemmy-site:${DRONE_TAG} deployed' ntfy.sh/lemmy_drone_ci" - "curl -d'joinlemmy-site:${DRONE_TAG} deployed' ntfy.sh/lemmy_drone_ci"
when: when:
event: tag - event: tag