Trying to add docker:latest. Fixes #1959 (#1960)

* Trying to add docker:latest. Fixes #1959

* Version 0.14.4-rc.3

* Trying to fix clippy on crate build

* Version 0.14.4-rc.4
This commit is contained in:
Dessalines 2021-11-26 07:38:55 -05:00 committed by GitHub
parent be65b6869f
commit ad76c75821
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 127 additions and 93 deletions

View file

@ -95,6 +95,23 @@ steps:
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
@ -207,6 +224,23 @@ steps:
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

28
Cargo.lock generated
View file

@ -1722,7 +1722,7 @@ checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
[[package]]
name = "lemmy_api"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"actix",
"actix-rt",
@ -1765,7 +1765,7 @@ dependencies = [
[[package]]
name = "lemmy_api_common"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"actix-web",
"chrono",
@ -1782,7 +1782,7 @@ dependencies = [
[[package]]
name = "lemmy_api_crud"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"actix",
"actix-rt",
@ -1826,7 +1826,7 @@ dependencies = [
[[package]]
name = "lemmy_apub"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"activitystreams-kinds",
"actix",
@ -1872,7 +1872,7 @@ dependencies = [
[[package]]
name = "lemmy_apub_lib"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"activitystreams",
"actix-web",
@ -1898,7 +1898,7 @@ dependencies = [
[[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",
@ -1908,7 +1908,7 @@ dependencies = [
[[package]]
name = "lemmy_db_schema"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"bcrypt",
"chrono",
@ -1930,7 +1930,7 @@ dependencies = [
[[package]]
name = "lemmy_db_views"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"diesel",
"lemmy_db_schema",
@ -1942,7 +1942,7 @@ dependencies = [
[[package]]
name = "lemmy_db_views_actor"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"diesel",
"lemmy_db_schema",
@ -1951,7 +1951,7 @@ dependencies = [
[[package]]
name = "lemmy_db_views_moderator"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"diesel",
"lemmy_db_schema",
@ -1960,7 +1960,7 @@ dependencies = [
[[package]]
name = "lemmy_routes"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"actix",
"actix-http",
@ -1987,7 +1987,7 @@ dependencies = [
[[package]]
name = "lemmy_server"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"activitystreams",
"actix",
@ -2029,7 +2029,7 @@ dependencies = [
[[package]]
name = "lemmy_utils"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"actix-rt",
"actix-web",
@ -2066,7 +2066,7 @@ dependencies = [
[[package]]
name = "lemmy_websocket"
version = "0.14.3"
version = "0.14.4-rc.4"
dependencies = [
"actix",
"actix-web",

View file

@ -1,6 +1,6 @@
[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"
@ -31,18 +31,18 @@ members = [
]
[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"] }

View file

@ -1,6 +1,6 @@
[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"
@ -13,15 +13,15 @@ path = "src/lib.rs"
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"] }

View file

@ -1,6 +1,6 @@
[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"
@ -13,11 +13,11 @@ path = "src/lib.rs"
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"] }

View file

@ -1,6 +1,6 @@
[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"
@ -8,15 +8,15 @@ homepage = "https://join-lemmy.org/"
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"] }

View file

@ -1,6 +1,6 @@
[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"
@ -13,13 +13,13 @@ path = "src/lib.rs"
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"

View file

@ -1,6 +1,6 @@
[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"
@ -8,8 +8,8 @@ homepage = "https://join-lemmy.org/"
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"

View file

@ -1,6 +1,6 @@
[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"

View file

@ -1,6 +1,6 @@
[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"
@ -11,8 +11,8 @@ documentation = "https://join-lemmy.org/docs/en/index.html"
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"] }

View file

@ -1,6 +1,6 @@
[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"
@ -11,7 +11,7 @@ documentation = "https://join-lemmy.org/docs/en/index.html"
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"

View file

@ -1,6 +1,6 @@
[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"
@ -11,6 +11,6 @@ documentation = "https://join-lemmy.org/docs/en/index.html"
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"] }

View file

@ -1,6 +1,6 @@
[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"
@ -11,6 +11,6 @@ documentation = "https://join-lemmy.org/docs/en/index.html"
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"] }

View file

@ -1,6 +1,6 @@
[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"
@ -11,13 +11,13 @@ documentation = "https://join-lemmy.org/docs/en/index.html"
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"] }

View file

@ -1,4 +1,4 @@
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;
@ -15,7 +15,7 @@ pub fn config(cfg: &mut web::ServiceConfig) {
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")?,

View file

@ -1,6 +1,6 @@
[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"

View file

@ -1,6 +1,6 @@
[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"
@ -13,11 +13,11 @@ path = "src/lib.rs"
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"