summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMalfurious <m@lfurio.us>2023-09-07 00:07:59 -0400
committerMalfurious <m@lfurio.us>2023-09-08 19:07:29 -0400
commit7a7ff89ff16542d30ff7c1f70689236b8fd9c607 (patch)
tree83c576f890215b96504d8ef3b91863f010d28dbd
parent65d21438ef6921353288a13aba7d2075182300d6 (diff)
downloadcychedelic-7a7ff89ff16542d30ff7c1f70689236b8fd9c607.tar.gz
cychedelic-7a7ff89ff16542d30ff7c1f70689236b8fd9c607.zip
acid: build: Cache path to the docker-compose.yml file
When a service entry is removed from $CYCHE_SERVICES, this value is lost, preventing us from properly tearing down the service. Signed-off-by: Malfurious <m@lfurio.us>
-rwxr-xr-xacid/cyche-build1
-rwxr-xr-xacid/cyche-source1
2 files changed, 2 insertions, 0 deletions
diff --git a/acid/cyche-build b/acid/cyche-build
index 310a087..5920a9e 100755
--- a/acid/cyche-build
+++ b/acid/cyche-build
@@ -43,6 +43,7 @@ docker compose $next --file "$2" up \
--remove-orphans \
--force-recreate
+echo "$2" >.git/previous_file
echo "$3" >.git/previous_hash
if [ "$4" == "--self" ]; then
diff --git a/acid/cyche-source b/acid/cyche-source
index ee4caca..09cfa72 100755
--- a/acid/cyche-source
+++ b/acid/cyche-source
@@ -29,6 +29,7 @@ if ! [ -d "$1" ]; then
git clone "$2" "$1" >&2 || exit 2
touch "$1/.git/previous_hash"
touch "$1/.git/previous_slug"
+ touch "$1/.git/previous_file"
fi
cd "$1"