|
|
@ -6,21 +6,23 @@ variables:
|
|
|
|
- &install_pnpm "corepack enable pnpm"
|
|
|
|
- &install_pnpm "corepack enable pnpm"
|
|
|
|
- &slow_check_paths
|
|
|
|
- &slow_check_paths
|
|
|
|
- path:
|
|
|
|
- path:
|
|
|
|
# rust source code
|
|
|
|
include: [
|
|
|
|
- "crates/**"
|
|
|
|
# rust source code
|
|
|
|
- "src/**"
|
|
|
|
"crates/**",
|
|
|
|
- "**/Cargo.toml"
|
|
|
|
"src/**",
|
|
|
|
- "Cargo.lock"
|
|
|
|
"**/Cargo.toml",
|
|
|
|
# database migrations
|
|
|
|
"Cargo.lock",
|
|
|
|
- "migrations/**"
|
|
|
|
# database migrations
|
|
|
|
# typescript tests
|
|
|
|
"migrations/**",
|
|
|
|
- "api_tests/**"
|
|
|
|
# typescript tests
|
|
|
|
# config files and scripts used by ci
|
|
|
|
"api_tests/**",
|
|
|
|
- ".woodpecker.yml"
|
|
|
|
# config files and scripts used by ci
|
|
|
|
- ".rustfmt.toml"
|
|
|
|
".woodpecker.yml",
|
|
|
|
- "scripts/update_config_defaults.sh"
|
|
|
|
".rustfmt.toml",
|
|
|
|
- "diesel.toml"
|
|
|
|
"scripts/update_config_defaults.sh",
|
|
|
|
- ".gitmodules"
|
|
|
|
"diesel.toml",
|
|
|
|
|
|
|
|
".gitmodules",
|
|
|
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
# Broken for cron jobs currently, see
|
|
|
|
# Broken for cron jobs currently, see
|
|
|
|
# https://github.com/woodpecker-ci/woodpecker/issues/1716
|
|
|
|
# https://github.com/woodpecker-ci/woodpecker/issues/1716
|
|
|
@ -198,7 +200,7 @@ steps:
|
|
|
|
- cat target/log/lemmy_*.out || true
|
|
|
|
- cat target/log/lemmy_*.out || true
|
|
|
|
- "# If you can't see all output, then use the download button"
|
|
|
|
- "# If you can't see all output, then use the download button"
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
status: [failure]
|
|
|
|
- status: [failure]
|
|
|
|
|
|
|
|
|
|
|
|
publish_release_docker:
|
|
|
|
publish_release_docker:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
@ -211,7 +213,7 @@ steps:
|
|
|
|
- RUST_RELEASE_MODE=release
|
|
|
|
- RUST_RELEASE_MODE=release
|
|
|
|
tag: ${CI_COMMIT_TAG}
|
|
|
|
tag: ${CI_COMMIT_TAG}
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
- event: tag
|
|
|
|
|
|
|
|
|
|
|
|
nightly_build:
|
|
|
|
nightly_build:
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
|
image: woodpeckerci/plugin-docker-buildx
|
|
|
@ -224,7 +226,7 @@ steps:
|
|
|
|
- RUST_RELEASE_MODE=release
|
|
|
|
- RUST_RELEASE_MODE=release
|
|
|
|
tag: dev
|
|
|
|
tag: dev
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
event: cron
|
|
|
|
- event: cron
|
|
|
|
|
|
|
|
|
|
|
|
# using https://github.com/pksunkara/cargo-workspaces
|
|
|
|
# using https://github.com/pksunkara/cargo-workspaces
|
|
|
|
publish_to_crates_io:
|
|
|
|
publish_to_crates_io:
|
|
|
@ -237,7 +239,7 @@ steps:
|
|
|
|
- cargo workspaces publish --from-git --allow-dirty --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes custom "${CI_COMMIT_TAG}"
|
|
|
|
- cargo workspaces publish --from-git --allow-dirty --no-verify --allow-branch "${CI_COMMIT_TAG}" --yes custom "${CI_COMMIT_TAG}"
|
|
|
|
secrets: [cargo_api_token]
|
|
|
|
secrets: [cargo_api_token]
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
- event: tag
|
|
|
|
|
|
|
|
|
|
|
|
notify_on_failure:
|
|
|
|
notify_on_failure:
|
|
|
|
image: alpine:3
|
|
|
|
image: alpine:3
|
|
|
@ -245,7 +247,7 @@ steps:
|
|
|
|
- apk add curl
|
|
|
|
- apk add curl
|
|
|
|
- "curl -d'Lemmy CI build failed: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
|
|
|
|
- "curl -d'Lemmy CI build failed: ${CI_PIPELINE_URL}' ntfy.sh/lemmy_drone_ci"
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
status: [failure]
|
|
|
|
- status: [failure]
|
|
|
|
|
|
|
|
|
|
|
|
notify_on_tag_deploy:
|
|
|
|
notify_on_tag_deploy:
|
|
|
|
image: alpine:3
|
|
|
|
image: alpine:3
|
|
|
@ -253,7 +255,7 @@ steps:
|
|
|
|
- apk add curl
|
|
|
|
- apk add curl
|
|
|
|
- "curl -d'lemmy:${CI_COMMIT_TAG} deployed' ntfy.sh/lemmy_drone_ci"
|
|
|
|
- "curl -d'lemmy:${CI_COMMIT_TAG} deployed' ntfy.sh/lemmy_drone_ci"
|
|
|
|
when:
|
|
|
|
when:
|
|
|
|
event: tag
|
|
|
|
- event: tag
|
|
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
services:
|
|
|
|
database:
|
|
|
|
database:
|
|
|
|