5 Commits

Author SHA1 Message Date
d9827f0ccf 👷 First try to setup the CI to deliver web docker image to registry
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-11 09:13:54 +02:00
77fa0c5fd5 🚀 Add the Dockerfile for the web app 2024-04-11 08:32:57 +02:00
d3a35cd81f ️ Configure turf to minify the generated CSS files 2024-04-11 08:31:33 +02:00
b524048563 ⬆️ Bump turf release (0.7.0 -> 0.8.*) 2024-04-11 08:30:29 +02:00
4ab4ac5fee ⬆️ Use of the latest matrix-sdk 0.7.* version (master branch before) 2024-04-11 08:30:17 +02:00
3 changed files with 41 additions and 2 deletions

16
.woodpecker/.deploy.yaml Normal file
View File

@@ -0,0 +1,16 @@
steps:
- name: publish
image: woodpeckerci/plugin-kaniko
settings:
registry: rg.fr-par.scw.cloud
repo: rg.fr-par.scw.cloud/asr-projects
tags: ${CI_COMMIT_SHA}
cache: true
build_args:
- COMMIT_SHA=${CI_COMMIT_SHA}
- COMMIT_AUTHOR_EMAIL=${CI_COMMIT_AUTHOR_EMAIL}
username:
from_secret: registry-username
password:
from_secret: registry-password
debug: true

View File

@@ -13,14 +13,15 @@ dioxus = "0.5.*"
dioxus-free-icons = { version = "0.8", features = ["material-design-icons-navigation", "ionicons"] }
dioxus-sdk = { version = "0.5.*", features = ["utils"] }
matrix-sdk = { git = "https://github.com/matrix-org/matrix-rust-sdk.git", branch = "main", default-features = false, features = ["js", "rustls-tls"] }
# matrix-sdk = { git = "https://github.com/matrix-org/matrix-rust-sdk.git", branch = "main", default-features = false, features = ["js", "rustls-tls"] }
matrix-sdk = { version = "0.7.*", default-features = false, features = ["js", "rustls-tls"] }
anyhow = "1.0.75"
url = "2.5.0"
dirs = "5.0.1"
ctrlc-async = "3.2.2"
thiserror = "1.0.50"
turf = "0.7.0"
turf = "0.8.*"
tokio = { version = "1.34.0", default-features = false, features = ["rt", "sync"] }
log = "0.4.20"
futures-util = "0.3.29"
@@ -40,6 +41,8 @@ web-sys = { version = "0.3.69" }
[build-dependencies]
regex = "1.10.3"
[package.metadata.turf]
minify = true
[package.metadata.turf.class_names]
template = "<original_name>--<id>"

20
Dockerfile Normal file
View File

@@ -0,0 +1,20 @@
FROM rust:latest AS builder
WORKDIR /usr/src/beau-gosse-du-92
COPY ./fonts ./fonts
COPY ./images ./images
COPY ./Dioxus.toml .
COPY Cargo.* .
COPY ./build.rs .
COPY ./src ./src
RUN cargo install dioxus-cli
RUN dx build -r --platform web
FROM nginx:mainline-alpine-slim
COPY --from=builder /usr/src/beau-gosse-du-92/dist /usr/share/nginx/html