]> Untitled Git - lemmy.git/blobdiff - .drone.yml
Move @context out of object/activity definitions
[lemmy.git] / .drone.yml
index cd3f58a7e8f0f579f61c62079e4db10a3c03dff5..e96fee7cf6d3c172d939acec4032b03eaa617807 100644 (file)
@@ -38,17 +38,17 @@ steps:
       - sudo apt-get -y install --no-install-recommends postgresql-client
       - cargo test --workspace --no-fail-fast
 
-  - name: cargo build
+  - name: check defaults.hjson updated
     image: ekidd/rust-musl-builder:1.51.0
     commands:
-      - cargo build
-      - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
+      - ./scripts/update_config_defaults.sh config/defaults_current.hjson
+      - diff config/defaults.hjson config/defaults_current.hjson
 
-  - name: check defaults.hjson updated
+  - name: cargo build
     image: ekidd/rust-musl-builder:1.51.0
     commands:
-      - target/lemmy_server --print-config-docs > config/defaults_current.hjson
-      - diff config/defaults.hjson config/defaults_current.hjson
+      - cargo build
+      - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server
 
   - name: run federation tests
     image: node:alpine
@@ -128,13 +128,13 @@ steps:
 
   # using https://github.com/pksunkara/cargo-workspaces
   - name: publish to crates.io
-    image: rust:1
+    image: rustlang/rust:nightly
     environment:
       CARGO_TOKEN:
         from_secret: cargo_api_token
     commands:
       - cargo install cargo-workspaces
-      - cp -r migrations crates/db_queries/
+      - cp -r migrations crates/db_schema/
       - cargo login "$CARGO_TOKEN"
       - cargo workspaces publish --from-git --allow-dirty --allow-branch "${DRONE_TAG}" --yes custom "${DRONE_TAG}"
     when: