36 Commits

Author SHA1 Message Date
1d116db101 👷 Fix typo
All checks were successful
ci/woodpecker/push/dockerize Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-14 00:15:48 +02:00
a511f7f185 👷 Run dockerize and deploy sequentially
Some checks failed
ci/woodpecker/push/dockerize Pipeline was successful
ci/woodpecker/push/deploy Pipeline failed
2024-04-13 23:07:19 +02:00
0d94cea968 👷 Fix repo value
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-13 22:36:40 +02:00
a929c88f5c 👷 Second try...
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-13 22:34:57 +02:00
bf116413c3 👷 First deployment try
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-13 22:26:53 +02:00
296d9e81f2 👷 Reuse of the plugin-kaniko image
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-13 17:23:57 +02:00
03255609a8 👷 Try to remove cpu/ram constrains
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-13 17:21:38 +02:00
723b43b679 👷 A bigger VM has been deployed
All checks were successful
ci/woodpecker/manual/deploy Pipeline was successful
2024-04-13 12:01:02 +02:00
24bcb38564 👷 Try to increase allocated RAM... one more time
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-13 10:18:07 +02:00
2c90592755 🐛 Use of a temp plugin-kaniko image fixing the build-args issue
Some checks are pending
ci/woodpecker/push/deploy Pipeline is running
2024-04-13 09:54:52 +02:00
be3e403f40 🐛 Try to setup build-args variable with a string
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-13 00:37:54 +02:00
e94ed9df87 🐛 Try to setup build-args variable
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-13 00:28:13 +02:00
1c5940624c 🐛 Try to setup build_args with a list of strings
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-13 00:15:22 +02:00
e76069fbbe 🐛 Retry to set build_args variable
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-13 00:14:29 +02:00
897bc81ac8 🐛 Fix another typo
Some checks are pending
ci/woodpecker/push/deploy Pipeline is running
2024-04-12 23:35:01 +02:00
37335af0f7 🐛 Fix another typo
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-12 23:31:31 +02:00
b5656f0742 🐛 Fix another typo
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-12 23:15:22 +02:00
7eb9947cf1 🐛 Fix another typo 2024-04-12 23:13:53 +02:00
8556c77fb0 🐛 Fix typo
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-12 23:08:21 +02:00
8d6b8fb09c 👷 Life is more complicated... make the number of jobs configurable
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-12 23:04:40 +02:00
57b0e94061 👷 CPU constraints shall not be set in the Dockerfile, but by the CI job
Some checks failed
ci/woodpecker/push/deploy Pipeline was canceled
2024-04-12 21:30:45 +02:00
357b618262 👷 Disable incremental compilation and use a single core to reduce the RAM consumption
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-12 20:31:14 +02:00
7b755d4a97 👷 Increase the memory allocated to the deploy pod
Some checks are pending
ci/woodpecker/push/deploy Pipeline is running
2024-04-11 13:35:10 +02:00
fe2298e3b0 👷 Decrease the memory allocated to the deploy pod
Some checks are pending
ci/woodpecker/push/deploy Pipeline is running
2024-04-11 12:58:10 +02:00
77ba9256b0 👷 Decrease cpu requeted by the publish step
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-11 12:55:35 +02:00
8e6ae42ac7 👷 Remove k8s limits
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-11 12:51:21 +02:00
68a012f8ad 👷 Try to increase the resources allocated to the image building (step 3)
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-11 11:43:58 +02:00
08d9b5ef08 👷 Try to increase the resource allocated to the image building (step 2)
Some checks failed
ci/woodpecker/push/deploy Pipeline was canceled
2024-04-11 11:13:57 +02:00
9e21b1b28e 👷 Try to increase the resource allocated to the image building
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
2024-04-11 11:10:20 +02:00
ddc2431f60 👷 Add the image to push to the repo settings
Some checks failed
ci/woodpecker/push/deploy Pipeline was canceled
2024-04-11 10:18:53 +02:00
af806e6b43 👷 Enable auto_tag option
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-11 09:49:37 +02:00
6e4bc63868 👷 Remove leading extra / from the repo name
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-11 09:43:26 +02:00
6e1bf38cd3 👷 Seems that nologin shall be used to login to the registry
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-11 09:32:08 +02:00
16fbeab8e9 👷 Remove registry name from the repo one
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-11 09:20:13 +02:00
dbc5adac23 👷 Comment plugin-kaniko build args for now
Some checks failed
ci/woodpecker/push/deploy Pipeline failed
2024-04-11 09:16:38 +02:00
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
4 changed files with 53 additions and 10 deletions

5
.dockerignore Normal file
View File

@@ -0,0 +1,5 @@
# .git directory is not filtered here: we need to copy the .git directory in the builder image to compute the version.
dist
medias
README.md
target

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

@@ -0,0 +1,25 @@
steps:
deploy:
image: euryecetelecom/woodpeckerci-kubernetes
settings:
kubernetes_server:
from_secret: kubernetes_server
kubernetes_token:
from_secret: kubernetes_token
kubernetes_cert:
from_secret: kubernetes_cert
namespace: bg92
wait: true
wait_timeout: 60s
force: true
deployment: beau-gosse-du-92-web
repo: rg.fr-par.scw.cloud/asr-projects/beau-gosse-du-92-web
container: beau-gosse-du-92-web
tag: ${CI_COMMIT_SHA}
secrets:
- kubernetes_cert
- kubernetes_server
- kubernetes_token
depends_on:
- dockerize

View File

@@ -0,0 +1,14 @@
# when:
# - branch: ${CI_REPO_DEFAULT_BRANCH}
steps:
dockerize:
image: woodpeckerci/plugin-kaniko
settings:
registry: rg.fr-par.scw.cloud
repo: asr-projects/beau-gosse-du-92-web
tags: ${CI_COMMIT_SHA}
auto_tag: true
username: nologin
password:
from_secret: registry-password

View File

@@ -1,18 +1,17 @@
FROM rust:latest AS builder FROM rust:latest AS builder
ARG JOBS_NB=${JOBS_NB:-default}
# Disable incremental compilation
# Cf. https://doc.rust-lang.org/cargo/reference/profiles.html#incremental
ARG CARGO_INCREMENTAL=0
WORKDIR /usr/src/beau-gosse-du-92 WORKDIR /usr/src/beau-gosse-du-92
COPY ./fonts ./fonts COPY . .
COPY ./images ./images
RUN cargo install -j ${JOBS_NB} dioxus-cli
COPY ./Dioxus.toml . RUN dx build -r --platform web -- -j ${JOBS_NB}
COPY Cargo.* .
COPY ./build.rs .
COPY ./src ./src
RUN cargo install dioxus-cli
RUN dx build -r --platform web
FROM nginx:mainline-alpine-slim FROM nginx:mainline-alpine-slim