From 30eab9663d5541e80f3c07985e0349c754b043ed Mon Sep 17 00:00:00 2001 From: Matt Rendina Date: Tue, 28 Jul 2020 14:49:54 -0400 Subject: Generalize snapshot specification (#3) Allow snapshot URL or direct file specification --- build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index 66788d9..9dba331 100755 --- a/build.sh +++ b/build.sh @@ -6,12 +6,12 @@ if [[ ! $tag ]]; then exit 1 fi -url="$2" -if [[ ! $url ]]; then - echo "No published snapshot URL specified." +snapshot="$2" +if [[ ! $snapshot ]]; then + echo "No snapshot file or URL specified." exit 1 fi docker build \ -t "astroconda/buildsys-pipeline:${tag}" \ - --build-arg SNAPSHOT_URL="${url}" $(pwd) + --build-arg SNAPSHOT_INPUT="${snapshot}" $(pwd) -- cgit