- name: publish release docker manifest
image: plugins/manifest
- settings:
+ settings:
username:
from_secret: docker_username
password:
ref:
- refs/tags/*
+ - name: publish latest release docker manifest
+ image: plugins/manifest
+ settings:
+ username:
+ from_secret: docker_username
+ password:
+ from_secret: docker_password
+ target: "dessalines/lemmy:latest"
+ template: "dessalines/lemmy:${DRONE_TAG}-OS-ARCH"
+ platforms:
+ - linux/amd64
+ - linux/arm64
+ ignore_missing: true
+ when:
+ ref:
+ - refs/tags/*
+
# using https://github.com/pksunkara/cargo-workspaces
- name: publish to crates.io
image: rustlang/rust:nightly
- name: publish release docker manifest
image: plugins/manifest
- settings:
+ settings:
username:
from_secret: docker_username
password:
ref:
- refs/tags/*
+ - name: publish latest release docker manifest
+ image: plugins/manifest
+ settings:
+ username:
+ from_secret: docker_username
+ password:
+ from_secret: docker_password
+ target: "dessalines/lemmy:latest"
+ template: "dessalines/lemmy:${DRONE_TAG}-OS-ARCH"
+ platforms:
+ - linux/amd64
+ - linux/arm64
+ ignore_missing: true
+ when:
+ ref:
+ - refs/tags/*
+
# TODO temporarily disable arm tests
# services:
# - name: database
[[package]]
name = "lemmy_api"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"actix",
"actix-rt",
[[package]]
name = "lemmy_api_common"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"actix-web",
"chrono",
[[package]]
name = "lemmy_api_crud"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"actix",
"actix-rt",
[[package]]
name = "lemmy_apub"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"activitystreams-kinds",
"actix",
[[package]]
name = "lemmy_apub_lib"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"activitystreams",
"actix-web",
[[package]]
name = "lemmy_apub_lib_derive"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"proc-macro2 1.0.32",
"quote 1.0.10",
[[package]]
name = "lemmy_db_schema"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"bcrypt",
"chrono",
[[package]]
name = "lemmy_db_views"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"diesel",
"lemmy_db_schema",
[[package]]
name = "lemmy_db_views_actor"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"diesel",
"lemmy_db_schema",
[[package]]
name = "lemmy_db_views_moderator"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"diesel",
"lemmy_db_schema",
[[package]]
name = "lemmy_routes"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"actix",
"actix-http",
[[package]]
name = "lemmy_server"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"activitystreams",
"actix",
[[package]]
name = "lemmy_utils"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"actix-rt",
"actix-web",
[[package]]
name = "lemmy_websocket"
-version = "0.14.3"
+version = "0.14.4-rc.4"
dependencies = [
"actix",
"actix-web",
[package]
name = "lemmy_server"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
]
[dependencies]
-lemmy_api = { version = "=0.14.3", path = "./crates/api" }
-lemmy_api_crud = { version = "=0.14.3", path = "./crates/api_crud" }
-lemmy_apub = { version = "=0.14.3", path = "./crates/apub" }
-lemmy_apub_lib = { version = "=0.14.3", path = "./crates/apub_lib" }
-lemmy_utils = { version = "=0.14.3", path = "./crates/utils" }
-lemmy_db_schema = { version = "=0.14.3", path = "./crates/db_schema" }
-lemmy_db_views = { version = "=0.14.3", path = "./crates/db_views" }
-lemmy_db_views_moderator = { version = "=0.14.3", path = "./crates/db_views_moderator" }
-lemmy_db_views_actor = { version = "=0.14.3", path = "./crates/db_views_actor" }
-lemmy_api_common = { version = "=0.14.3", path = "crates/api_common" }
-lemmy_websocket = { version = "=0.14.3", path = "./crates/websocket" }
-lemmy_routes = { version = "=0.14.3", path = "./crates/routes" }
+lemmy_api = { version = "=0.14.4-rc.4", path = "./crates/api" }
+lemmy_api_crud = { version = "=0.14.4-rc.4", path = "./crates/api_crud" }
+lemmy_apub = { version = "=0.14.4-rc.4", path = "./crates/apub" }
+lemmy_apub_lib = { version = "=0.14.4-rc.4", path = "./crates/apub_lib" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "./crates/utils" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "./crates/db_schema" }
+lemmy_db_views = { version = "=0.14.4-rc.4", path = "./crates/db_views" }
+lemmy_db_views_moderator = { version = "=0.14.4-rc.4", path = "./crates/db_views_moderator" }
+lemmy_db_views_actor = { version = "=0.14.4-rc.4", path = "./crates/db_views_actor" }
+lemmy_api_common = { version = "=0.14.4-rc.4", path = "crates/api_common" }
+lemmy_websocket = { version = "=0.14.4-rc.4", path = "./crates/websocket" }
+lemmy_routes = { version = "=0.14.4-rc.4", path = "./crates/routes" }
diesel = "1.4.8"
diesel_migrations = "1.4.0"
chrono = { version = "0.4.19", features = ["serde"] }
[package]
name = "lemmy_api"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_apub = { version = "=0.14.3", path = "../apub" }
-lemmy_apub_lib = { version = "=0.14.3", path = "../apub_lib" }
-lemmy_utils = { version = "=0.14.3", path = "../utils" }
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
-lemmy_db_views = { version = "=0.14.3", path = "../db_views" }
-lemmy_db_views_moderator = { version = "=0.14.3", path = "../db_views_moderator" }
-lemmy_db_views_actor = { version = "=0.14.3", path = "../db_views_actor" }
-lemmy_api_common = { version = "=0.14.3", path = "../api_common" }
-lemmy_websocket = { version = "=0.14.3", path = "../websocket" }
+lemmy_apub = { version = "=0.14.4-rc.4", path = "../apub" }
+lemmy_apub_lib = { version = "=0.14.4-rc.4", path = "../apub_lib" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "../utils" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
+lemmy_db_views = { version = "=0.14.4-rc.4", path = "../db_views" }
+lemmy_db_views_moderator = { version = "=0.14.4-rc.4", path = "../db_views_moderator" }
+lemmy_db_views_actor = { version = "=0.14.4-rc.4", path = "../db_views_actor" }
+lemmy_api_common = { version = "=0.14.4-rc.4", path = "../api_common" }
+lemmy_websocket = { version = "=0.14.4-rc.4", path = "../websocket" }
diesel = "1.4.8"
bcrypt = "0.10.1"
chrono = { version = "0.4.19", features = ["serde"] }
[package]
name = "lemmy_api_common"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_db_views = { version = "=0.14.3", path = "../db_views" }
-lemmy_db_views_moderator = { version = "=0.14.3", path = "../db_views_moderator" }
-lemmy_db_views_actor = { version = "=0.14.3", path = "../db_views_actor" }
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
-lemmy_utils = { version = "=0.14.3", path = "../utils" }
+lemmy_db_views = { version = "=0.14.4-rc.4", path = "../db_views" }
+lemmy_db_views_moderator = { version = "=0.14.4-rc.4", path = "../db_views_moderator" }
+lemmy_db_views_actor = { version = "=0.14.4-rc.4", path = "../db_views_actor" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "../utils" }
serde = { version = "1.0.130", features = ["derive"] }
diesel = "1.4.8"
actix-web = { version = "4.0.0-beta.9", default-features = false, features = ["cookies"] }
[package]
name = "lemmy_api_crud"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
documentation = "https://join-lemmy.org/docs/en/index.html"
[dependencies]
-lemmy_apub = { version = "=0.14.3", path = "../apub" }
-lemmy_apub_lib = { version = "=0.14.3", path = "../apub_lib" }
-lemmy_utils = { version = "=0.14.3", path = "../utils" }
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
-lemmy_db_views = { version = "=0.14.3", path = "../db_views" }
-lemmy_db_views_moderator = { version = "=0.14.3", path = "../db_views_moderator" }
-lemmy_db_views_actor = { version = "=0.14.3", path = "../db_views_actor" }
-lemmy_api_common = { version = "=0.14.3", path = "../api_common" }
-lemmy_websocket = { version = "=0.14.3", path = "../websocket" }
+lemmy_apub = { version = "=0.14.4-rc.4", path = "../apub" }
+lemmy_apub_lib = { version = "=0.14.4-rc.4", path = "../apub_lib" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "../utils" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
+lemmy_db_views = { version = "=0.14.4-rc.4", path = "../db_views" }
+lemmy_db_views_moderator = { version = "=0.14.4-rc.4", path = "../db_views_moderator" }
+lemmy_db_views_actor = { version = "=0.14.4-rc.4", path = "../db_views_actor" }
+lemmy_api_common = { version = "=0.14.4-rc.4", path = "../api_common" }
+lemmy_websocket = { version = "=0.14.4-rc.4", path = "../websocket" }
diesel = "1.4.8"
bcrypt = "0.10.1"
chrono = { version = "0.4.19", features = ["serde"] }
[package]
name = "lemmy_apub"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_utils = { version = "=0.14.3", path = "../utils" }
-lemmy_apub_lib = { version = "=0.14.3", path = "../apub_lib" }
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
-lemmy_db_views = { version = "=0.14.3", path = "../db_views" }
-lemmy_db_views_actor = { version = "=0.14.3", path = "../db_views_actor" }
-lemmy_api_common = { version = "=0.14.3", path = "../api_common" }
-lemmy_websocket = { version = "=0.14.3", path = "../websocket" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "../utils" }
+lemmy_apub_lib = { version = "=0.14.4-rc.4", path = "../apub_lib" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
+lemmy_db_views = { version = "=0.14.4-rc.4", path = "../db_views" }
+lemmy_db_views_actor = { version = "=0.14.4-rc.4", path = "../db_views_actor" }
+lemmy_api_common = { version = "=0.14.4-rc.4", path = "../api_common" }
+lemmy_websocket = { version = "=0.14.4-rc.4", path = "../websocket" }
diesel = "1.4.8"
activitystreams-kinds = "0.1.2"
bcrypt = "0.10.1"
[package]
name = "lemmy_apub_lib"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
documentation = "https://join-lemmy.org/docs/en/index.html"
[dependencies]
-lemmy_utils = { version = "=0.14.3", path = "../utils" }
-lemmy_apub_lib_derive = { version = "=0.14.3", path = "../apub_lib_derive" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "../utils" }
+lemmy_apub_lib_derive = { version = "=0.14.4-rc.4", path = "../apub_lib_derive" }
activitystreams = "0.7.0-alpha.11"
serde = { version = "1.0.130", features = ["derive"] }
async-trait = "0.1.51"
[package]
name = "lemmy_apub_lib_derive"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[package]
name = "lemmy_db_schema"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_utils = { version = "=0.14.3", path = "../utils" }
-lemmy_apub_lib = { version = "=0.14.3", path = "../apub_lib" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "../utils" }
+lemmy_apub_lib = { version = "=0.14.4-rc.4", path = "../apub_lib" }
diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] }
diesel_migrations = "1.4.0"
chrono = { version = "0.4.19", features = ["serde"] }
[package]
name = "lemmy_db_views"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.130", features = ["derive"] }
tracing = "0.1.29"
[package]
name = "lemmy_db_views_actor"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.130", features = ["derive"] }
[package]
name = "lemmy_db_views_moderator"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
diesel = { version = "1.4.8", features = ["postgres","chrono","r2d2","serde_json"] }
serde = { version = "1.0.130", features = ["derive"] }
[package]
name = "lemmy_routes"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_utils = { version = "=0.14.3", path = "../utils" }
-lemmy_websocket = { version = "=0.14.3", path = "../websocket" }
-lemmy_db_views = { version = "=0.14.3", path = "../db_views" }
-lemmy_db_views_actor = { version = "=0.14.3", path = "../db_views_actor" }
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
-lemmy_api_common = { version = "=0.14.3", path = "../api_common" }
-lemmy_apub = { version = "=0.14.3", path = "../apub" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "../utils" }
+lemmy_websocket = { version = "=0.14.4-rc.4", path = "../websocket" }
+lemmy_db_views = { version = "=0.14.4-rc.4", path = "../db_views" }
+lemmy_db_views_actor = { version = "=0.14.4-rc.4", path = "../db_views_actor" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
+lemmy_api_common = { version = "=0.14.4-rc.4", path = "../api_common" }
+lemmy_apub = { version = "=0.14.4-rc.4", path = "../apub" }
diesel = "1.4.8"
actix = "0.12.0"
actix-web = { version = "4.0.0-beta.9", default-features = false, features = ["rustls"] }
-use actix_web::{body::Body, error::ErrorBadRequest, *};
+use actix_web::{body::AnyBody, error::ErrorBadRequest, *};
use anyhow::anyhow;
use lemmy_api_common::blocking;
use lemmy_db_views::site_view::SiteView;
async fn node_info_well_known(
context: web::Data<LemmyContext>,
-) -> Result<HttpResponse<Body>, LemmyError> {
+) -> Result<HttpResponse<AnyBody>, LemmyError> {
let node_info = NodeInfoWellKnown {
links: vec![NodeInfoWellKnownLinks {
rel: Url::parse("http://nodeinfo.diaspora.software/ns/schema/2.0")?,
[package]
name = "lemmy_utils"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
[package]
name = "lemmy_websocket"
-version = "0.14.3"
+version = "0.14.4-rc.4"
edition = "2018"
description = "A link aggregator for the fediverse"
license = "AGPL-3.0"
doctest = false
[dependencies]
-lemmy_utils = { version = "=0.14.3", path = "../utils" }
-lemmy_api_common = { version = "=0.14.3", path = "../api_common" }
-lemmy_db_schema = { version = "=0.14.3", path = "../db_schema" }
-lemmy_db_views = { version = "=0.14.3", path = "../db_views" }
-lemmy_db_views_actor = { version = "=0.14.3", path = "../db_views_actor" }
+lemmy_utils = { version = "=0.14.4-rc.4", path = "../utils" }
+lemmy_api_common = { version = "=0.14.4-rc.4", path = "../api_common" }
+lemmy_db_schema = { version = "=0.14.4-rc.4", path = "../db_schema" }
+lemmy_db_views = { version = "=0.14.4-rc.4", path = "../db_views" }
+lemmy_db_views_actor = { version = "=0.14.4-rc.4", path = "../db_views_actor" }
reqwest = { version = "0.11.4", features = ["json"] }
tracing = "0.1.29"
rand = "0.8.4"