aboutsummaryrefslogtreecommitdiff
path: root/build.sh
blob: b9b6bd26d1f7443be3808cb89b1ccaeceea25781 (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 spec file specified."
    exit 1
fi

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