From 9e690b9069d431c61963826f9ffdd9d67dcddac1 Mon Sep 17 00:00:00 2001 From: penwing-bathhouse Date: Wed, 25 Sep 2024 09:05:48 +0200 Subject: [PATCH] working auto-update --- Dockerfile | 13 +++++++++---- .../codicam/.flatnotes/4_0p5i1sd28b0kwnhq.seg | Bin 0 -> 12350 bytes .../codicam/.flatnotes/4_7cxe2t89vai1cbya.seg | Bin 12025 -> 0 bytes .../.flatnotes/{_4_5.toc => _4_19.toc} | Bin 6508 -> 6508 bytes content/codicam/_index.md | 2 ++ content/roboticam/_index.md | 2 ++ docker-compose.yml | 5 +++++ templates/base.html | 4 ++-- update.sh | 7 +++++++ 9 files changed, 27 insertions(+), 6 deletions(-) create mode 100644 content/codicam/.flatnotes/4_0p5i1sd28b0kwnhq.seg delete mode 100644 content/codicam/.flatnotes/4_7cxe2t89vai1cbya.seg rename content/codicam/.flatnotes/{_4_5.toc => _4_19.toc} (76%) create mode 100644 update.sh diff --git a/Dockerfile b/Dockerfile index 670d3d8..8fa0e06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,8 +2,13 @@ FROM ghcr.io/getzola/zola:v0.17.1 as zola COPY . /project WORKDIR /project -RUN ["zola", "build"] -FROM ghcr.io/static-web-server/static-web-server:2 -WORKDIR / -COPY --from=zola /project/public /public +ENV PATH="/usr/local/bin:${PATH}" + +CMD ["serve", "--interface", "0.0.0.0", "--port", "80", "--base-url", "codicam.penwing.org"] + +#RUN ["zola", "build"] + +#FROM ghcr.io/static-web-server/static-web-server:2 +#WORKDIR / +#COPY --from=zola /project/public /public diff --git a/content/codicam/.flatnotes/4_0p5i1sd28b0kwnhq.seg b/content/codicam/.flatnotes/4_0p5i1sd28b0kwnhq.seg new file mode 100644 index 0000000000000000000000000000000000000000..5555895a3ccb647dd44d0a865a0110d04620da5f GIT binary patch literal 12350 zcmeHN3v?4z8lK7I)ikB8;SF0!OOb*t#Zn5gg%CgxG=*x#4V1DJ zBAYEiTf=b+=vw5tJX)&N1q)j36DTeSd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2;gs zd&gF64!MzA(A`&yIreOu(LkEZ;B-M5;)$Et3<*W-JlwT(P$~nmD6bEgcc$sNT8HHMV(tF`Z!s!} diff --git a/content/codicam/.flatnotes/_4_5.toc b/content/codicam/.flatnotes/_4_19.toc similarity index 76% rename from content/codicam/.flatnotes/_4_5.toc rename to content/codicam/.flatnotes/_4_19.toc index ca77c7bf6744a9408bc08b5e16b5517a220a87be..abb98e5f5df020fe9e7c8a318c80f02c82fae884 100644 GIT binary patch delta 742 zcmXZYId9ZJ6ae5IdmWKbunIzoC?djdF{)t5Ot8 z*rS`iguQA*imoeRROPsmKvmxu!9JCEKGgmXhAE7xS{Q(>t_k7<_BR-Qj0;>%1xY*w z<0=*IWgiZxg*bqNdQ-xL+LXeFLpnRbVGx=p==s`icaOsUbJ<;kbH1 z7D@ppR5$aBelud5c>T5D^(Blq7;iD&37%gsXV_WB(+b8a#y5=b*cq}eZsrbSf;$Fb z5@o_dX6G!%cro8IZ1iyF16J}+>rUgs7n=A=EE6llDw0q3o~v@_C!K#0zllFgc+Ov< zWZ;nz24N!kQtu7Ce1uZ3?+m_fvCn2$VS|DfKh_&&mpeBH#d+rz7MvO4HZe=wA?ApA z;x2KIxKBJF9ukj;$HWujDX~C2Bc2ll@q&0sydoBfVtPYBzu|MGpvRT|8H;VqM+eSU kYSZK4SlYBFyxOHK5|HNu?<*&-S~8R^|61K_w>`J|4+_B06951J delta 742 zcmXZY&rj4)5C`zSc1r{gZb(ds2O>TNf3ZkW0TK1$Y14QyW=*`bOPg1-v`qJvwWs|9 z^j5v-MMUtoqE$JAdhnu&7mo_)jl@4dRAyd1%xAxE=5@Neo7Sea^qI9|*jqC+O><%o z`f56+z=wS`MlIlKw{((Qs_uk&w-K`4yt*QIbrtI!)_bfEf@il%Eu5_3X&q|=>j&0Pob;Jj_i&pr z!EK!|h!SBU^9v?pJYVeS*E_iV2|L-B9T)I{Z*=23u|}*D8%Q?MdAY*v-*nz0{t$ne zaP5DDrsI(jI$$ oV9%xUX#JXJ$+7WSCm61~sgq?rAIpiz5oCK diff --git a/content/codicam/_index.md b/content/codicam/_index.md index 854e287..808484e 100644 --- a/content/codicam/_index.md +++ b/content/codicam/_index.md @@ -8,6 +8,8 @@ on fait plein de trucs vachements cools # Projets +avec des gens super géniaux + ## Truc cool [lien](@/codicam/truccool.md) diff --git a/content/roboticam/_index.md b/content/roboticam/_index.md index 24209a7..96fb7f4 100644 --- a/content/roboticam/_index.md +++ b/content/roboticam/_index.md @@ -8,6 +8,8 @@ on fait plein de trucs vachements cools # Projets +Big up au général Kenobiiiiiii + ## Truc cool [lien](@/roboticam/truccool.md) diff --git a/docker-compose.yml b/docker-compose.yml index 422bca4..4f64273 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,11 @@ services: dockerfile: Dockerfile ports: - "8001:80" + volumes: + - ./content:/project/content + - ./templates:/project/templates + - ./static:/project/static + - ./sass:/project/sass restart: unless-stopped edit-codicam: diff --git a/templates/base.html b/templates/base.html index b8d1efb..f2ddcf3 100644 --- a/templates/base.html +++ b/templates/base.html @@ -3,8 +3,8 @@ {{ config.title }} - - + +
diff --git a/update.sh b/update.sh new file mode 100644 index 0000000..995353e --- /dev/null +++ b/update.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +while true; do + inotifywait -r -e modify,create,delete ./content + zola build + echo "Changes detected. Rebuilding site..." +done