X-Git-Url: http://these/git/?a=blobdiff_plain;f=.drone.yml;h=697c9e814b0531f5c73b394a85f69adff41e2a52;hb=af225a42d0863a4362967b8e035e5b1a4643b725;hp=7d75fcbd587ede565ddeb1c9500f9670a108baf3;hpb=73449c09a7fb6392304501154945af50606d1070;p=lemmy.git diff --git a/.drone.yml b/.drone.yml index 7d75fcbd..697c9e81 100644 --- a/.drone.yml +++ b/.drone.yml @@ -45,7 +45,7 @@ steps: - mv target/x86_64-unknown-linux-musl/debug/lemmy_server target/lemmy_server - name: run federation tests - image: node:15-alpine3.12 + image: node:alpine environment: LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432 DO_WRITE_HOSTS_FILE: 1 @@ -122,11 +122,15 @@ steps: # using https://github.com/pksunkara/cargo-workspaces - name: publish to crates.io - image: rust:1.51-slim-buster + image: rust:1 + environment: + CARGO_TOKEN: + from_secret: cargo_api_token commands: - cargo install cargo-workspaces - cp -r migrations crates/db_queries/ - - cargo workspaces publish --no-git-commit --allow-branch main --yes custom "${DRONE_TAG}" + - cargo login "$CARGO_TOKEN" + - cargo workspaces publish --from-git --allow-dirty --allow-branch "${DRONE_TAG}" --yes custom "${DRONE_TAG}" when: ref: - refs/tags/* @@ -149,7 +153,7 @@ platform: steps: - name: prepare repo - image: rust:1.51-slim-buster + image: rust:1-slim user: root commands: - chown 1000:1000 . -R @@ -158,7 +162,7 @@ steps: - git fetch --tags - name: cargo test - image: rust:1.51-slim-buster + image: rust:1-slim environment: LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432/lemmy LEMMY_CONFIG_LOCATION: ../../config/config.hjson @@ -172,7 +176,7 @@ steps: # Using Debian here because there seems to be no official Alpine-based Rust docker image for ARM. - name: cargo build - image: rust:1.51-slim-buster + image: rust:1-slim commands: - apt-get update - apt-get -y install --no-install-recommends libssl-dev pkg-config libpq-dev @@ -180,7 +184,7 @@ steps: - mv target/debug/lemmy_server target/lemmy_server - name: run federation tests - image: node:15-buster-slim + image: node:16-slim environment: LEMMY_DATABASE_URL: postgres://lemmy:password@database:5432 DO_WRITE_HOSTS_FILE: 1