aboutsummaryrefslogtreecommitdiff
path: root/Earthfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-06-16 03:00:56 -0700
committerFuwn <[email protected]>2024-06-16 03:08:13 -0700
commitec3eb50f213aa40f1dc9c1fe4dfce0d74a987284 (patch)
treeff611bf63ab09832508f2964ef3324f4d70ca45f /Earthfile
parent1e357dbef1a0adf53e3b492e31cdb51fdf4add2e (diff)
downloadmayu-ec3eb50f213aa40f1dc9c1fe4dfce0d74a987284.tar.xz
mayu-ec3eb50f213aa40f1dc9c1fe4dfce0d74a987284.zip
feat(index.html): show version if availablev0.1.9
Diffstat (limited to 'Earthfile')
-rw-r--r--Earthfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Earthfile b/Earthfile
index bd8756b..cb4ea5d 100644
--- a/Earthfile
+++ b/Earthfile
@@ -11,6 +11,11 @@ docker:
COPY +build/erlang-shipment/ /mayu/erlang-shipment/
COPY themes/ /mayu/themes/
COPY index.html /mayu/
+ COPY gleam.toml /mayu/
+
+ ENV MAYU_VERSION=$(grep version /mayu/gleam.toml | cut -d '"' -f 2)
+
+ RUN rm /mayu/gleam.toml
WORKDIR /mayu/