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