Compare commits

..

No commits in common. "main" and "v0.0.4" have entirely different histories.
main ... v0.0.4

3 changed files with 6 additions and 14 deletions

View File

@ -64,10 +64,7 @@
name = "git.pbrinkmeier.de/paul/yore";
tag = yore.version;
copyToRoot = [ pkgs.cacert ];
config = {
Cmd = [ "${entrypoint}/bin/run" ];
StopSignal = "SIGINT";
};
config.Cmd = [ "${entrypoint}/bin/run" ];
};
entrypoint = pkgs.writeShellApplication {
@ -76,17 +73,12 @@
text = ''
set -Eeuo pipefail
mkdir -p "''${YORE_DBMATE_DIR}"
TMPDIR=$(mktemp -dp "''${YORE_DBMATE_DIR}")
mkdir -p "''${TMPDIR}/db"
cp -r ${./db}/* "''${TMPDIR}/db"
cd "''${TMPDIR}"
mkdir -p /workspace/db
cp -r ${./db}/* /workspace/db
cd /workspace
dbmate up
chmod +w -R "''${TMPDIR}"
rm -rf "''${TMPDIR}"
# Replace bash and inherit PID 1
cd /
exec yore
'';
};

View File

@ -112,7 +112,7 @@ showpdfRequest (y, m, d) =
NoReqBody
bsResponse
( formToQuery
[ ("cmd" :: Text, "showpdfjs")
[ ("cmd" :: Text, "showpdf")
, ("year", y)
, ("month", m)
, ("day", d)

View File

@ -1,7 +1,7 @@
cabal-version: 3.4
name: yore
version: 0.0.9
version: 0.0.4
author: Paul Brinkmeier
maintainer: hallo@pbrinkmeier.de
copyright: 2023 Paul Brinkmeier