aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: 66788d97fb630d0cd39eb2debcbf5d8496017a94 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

tag="$1"
if [[ ! $tag ]]; then
    echo "No tag specified."
    exit 1
fi

url="$2"
if [[ ! $url ]]; then
    echo "No published snapshot URL specified."
    exit 1
fi

docker build \
    -t "astroconda/buildsys-pipeline:${tag}" \
    --build-arg SNAPSHOT_URL="${url}" $(pwd)