blob: a6c56fcb22a933a5faefa14ed5a67ecdd2fefcbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash -eu
set -o pipefail
readonly filename="$1"; shift
readonly base=${filename%.docker}
readonly name=${base%-*}
readonly version=${base##*-}
readonly tag="quay.io/xlab-steampunk/sensu-go-tests-$name:$version"
docker build --pull -f "$filename" -t "$tag" .
docker push "$tag"
|