diff options
author | Matt Rendina <rendinam@users.noreply.github.com> | 2020-07-28 14:49:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-28 14:49:54 -0400 |
commit | 30eab9663d5541e80f3c07985e0349c754b043ed (patch) | |
tree | c57dd2f91e6fbc66d0e34c1e5377ad142ba87824 /build.sh | |
parent | a8d2fd9a872facc4a6ea5bd803396392b1be417d (diff) | |
download | docker-buildsys-pipeline-master.tar.gz |
Allow snapshot URL or direct file specification
Diffstat (limited to 'build.sh')
-rwxr-xr-x | build.sh | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |