A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(ci): accept the static image's compound license label (#3174)
Hampus3e9ee908f865
diff --git a/tools/ci/src/ci_workflow.rs b/tools/ci/src/ci_workflow.rsindex c2db6243b..807d4053a 100644--- a/tools/ci/src/ci_workflow.rs+++ b/tools/ci/src/ci_workflow.rs@@ -336,8 +336,7 @@ mod tests {#[test]fn image_dockerfiles_include_the_release_label_block() {- const REQUIRED: [&str; 9] = [- "LABEL org.opencontainers.image.licenses=\"AGPL-3.0-or-later\"",+ const REQUIRED: [&str; 8] = ["LABEL org.opencontainers.image.vendor=\"Fluxer\"","LABEL org.opencontainers.image.url=\"https://fluxer.app\"","LABEL org.opencontainers.image.documentation=\"https://docs.fluxer.app\"",@@ -427,6 +426,16 @@ mod tests {dockerfile.contains(&format!("LABEL org.opencontainers.image.title=\"{title}\"")),"{name}/Dockerfile must declare the title {title}");+ let licenses = match name {+ "fluxer_static" => "AGPL-3.0-or-later AND CC-BY-SA-4.0 AND CC-BY-4.0",+ _ => "AGPL-3.0-or-later",+ };+ assert!(+ dockerfile.contains(&format!(+ "LABEL org.opencontainers.image.licenses=\"{licenses}\""+ )),+ "{name}/Dockerfile must declare the licenses {licenses}"+ );for label in REQUIRED {assert!(dockerfile.contains(label),