diff options
author | Malfurious <m@lfurio.us> | 2023-09-09 03:11:16 -0400 |
---|---|---|
committer | Malfurious <m@lfurio.us> | 2023-09-10 04:47:40 -0400 |
commit | d07f07847cb8086ffafac412a1ad14d8a953f9da (patch) | |
tree | ae1892efae6564e37728ed47a276c3ddb78e8026 | |
parent | 95531708431448d1f2ae2d7573421c2980a16a17 (diff) | |
download | cychedelic-d07f07847cb8086ffafac412a1ad14d8a953f9da.tar.gz cychedelic-d07f07847cb8086ffafac412a1ad14d8a953f9da.zip |
Revert "acid: build: Cache path to the docker-compose.yml file"
This ends up being unnecessary. We don't need the content of the YML
file to correctly clean up resources. Docker compose inherently knows
how to handle it. As long as we operate with the correct --project-name
(whether it's explicitly given, or determined by current directory),
`docker compose down` will do the job.
We can therefore run from a workind directory that is unrelated to the
target service, even if it contains a different docker-compose.yml file.
This reverts commit 7a7ff89ff16542d30ff7c1f70689236b8fd9c607.
Signed-off-by: Malfurious <m@lfurio.us>
-rwxr-xr-x | acid/cyche-build | 1 | ||||
-rwxr-xr-x | acid/cyche-source | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/acid/cyche-build b/acid/cyche-build index 5920a9e..310a087 100755 --- a/acid/cyche-build +++ b/acid/cyche-build @@ -43,7 +43,6 @@ 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 09cfa72..ee4caca 100755 --- a/acid/cyche-source +++ b/acid/cyche-source @@ -29,7 +29,6 @@ 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" |