From: Nutomic Date: Tue, 8 Aug 2023 11:09:27 +0000 (+0200) Subject: Reorder woodpecker config to avoid ci failures (#3851) X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/nerdica.net/README.ja.md?a=commitdiff_plain;h=33b2d67be6df726c0249bcb44bd93d4e2654aa7e;p=lemmy.git Reorder woodpecker config to avoid ci failures (#3851) --- diff --git a/.woodpecker.yml b/.woodpecker.yml index a3c1f119..7fa461bc 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -42,30 +42,6 @@ pipeline: commands: - prettier -c . '!**/volumes' '!**/dist' '!target' '!**/translations' - restore-cache: - image: meltwater/drone-cache:v1 - pull: true - settings: - restore: true - endpoint: - from_secret: MINIO_ENDPOINT - access-key: - from_secret: MINIO_WRITE_USER - secret-key: - from_secret: MINIO_WRITE_PASSWORD - bucket: - from_secret: MINIO_BUCKET - region: us-east-1 - cache_key: "rust-cache" - path-style: true - mount: - - ".cargo" - - "target" - - "api_tests/node_modules" - secrets: - [MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET] - when: *slow_check_paths - toml_fmt: image: tamasfe/taplo:0.8.1 commands: @@ -95,6 +71,30 @@ pipeline: - cd .. - ./scripts/./sql_format_check.sh + restore-cache: + image: meltwater/drone-cache:v1 + pull: true + settings: + restore: true + endpoint: + from_secret: MINIO_ENDPOINT + access-key: + from_secret: MINIO_WRITE_USER + secret-key: + from_secret: MINIO_WRITE_PASSWORD + bucket: + from_secret: MINIO_BUCKET + region: us-east-1 + cache_key: "rust-cache" + path-style: true + mount: + - ".cargo" + - "target" + - "api_tests/node_modules" + secrets: + [MINIO_ENDPOINT, MINIO_WRITE_USER, MINIO_WRITE_PASSWORD, MINIO_BUCKET] + when: *slow_check_paths + # make sure api builds with default features (used by other crates relying on lemmy api) check_api_common_default_features: image: *muslrust_image