2 Commits
Author SHA1 Message Date
Paul Brinkmeier 2dacd4f747 Use /tmp for running dbmate
deliver / deliver (push) Successful in 2m6s
2025-10-07 16:48:53 +02:00
paul 94ede9a168 Use SIGINT as container StopSignal
deliver / deliver (push) Failing after 20s
2025-10-07 13:47:12 +02:00
2 changed files with 9 additions and 5 deletions
+8 -4
View File
@@ -64,7 +64,10 @@
name = "git.pbrinkmeier.de/paul/yore";
tag = yore.version;
copyToRoot = [ pkgs.cacert ];
config.Cmd = [ "${entrypoint}/bin/run" ];
config = {
Cmd = [ "${entrypoint}/bin/run" ];
StopSignal = "SIGINT";
};
};
entrypoint = pkgs.writeShellApplication {
@@ -73,12 +76,13 @@
text = ''
set -Eeuo pipefail
mkdir -p /workspace/db
cp -r ${./db}/* /workspace/db
cd /workspace
mkdir -p /tmp/yore-workspace/db
cp -r ${./db}/* /tmp/yore-workspace/db
cd /tmp/yore-workspace/db
dbmate up
# Replace bash and inherit PID 1
cd /
exec yore
'';
};
+1 -1
View File
@@ -1,7 +1,7 @@
cabal-version: 3.4
name: yore
version: 0.0.4
version: 0.0.6
author: Paul Brinkmeier
maintainer: hallo@pbrinkmeier.de
copyright: 2023 Paul Brinkmeier