diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2023-07-12 13:01:58 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2023-07-12 13:01:58 -0700 |
commit | f06bc1ea46909f74196a414d57c1cdcefcc94085 (patch) | |
tree | 376eeb82bbf17d7f8e4ce5f34e196d81478df73b | |
parent | downloads: try to provide shortcuts to download other arches (diff) | |
download | www-f06bc1ea46909f74196a414d57c1cdcefcc94085.tar.gz www-f06bc1ea46909f74196a414d57c1cdcefcc94085.tar.bz2 www-f06bc1ea46909f74196a414d57c1cdcefcc94085.zip |
bin/build: tweak build command
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-x | bin/build.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/bin/build.sh b/bin/build.sh index d879f43..70b5789 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -7,5 +7,12 @@ source "$(dirname "$0")"/docker-helper.inc # https://github.com/jekyll/jekyll/issues/3747 # By including a container name, we automatically ensure that only one instance is running! # We may need to explore extra timeouts in future -DOCKER_RUN_OPTIONS=( --name "gentoo.sites.www.build" ) + +# Need to be able to build one per www & wwwtest concurrently. +name=gentoo.sites.www.build +[[ "$0" != "${0/build-wwwtest}" ]] && name=gentoo.sites.wwwtest.build +DOCKER_RUN_OPTIONS=( --name "$name" ) + +# TODO: sometimes this got stuck and the previous container was stopped but not +# removed despite the --rm. We need to detect that and clean it up in future. docker_run_net_none jekyll build |