Skip to content

Commit

Permalink
build(script): tag builds as latest (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebaron committed Oct 15, 2021
1 parent d9331f4 commit e13bf04
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ if [ -z "$GRAFANA_IMAGE" ]; then
GRAFANA_IMAGE="quay.io/cryostat/cryostat-grafana-dashboard"
fi

if [ -z "$GRAFANA_TAG" ]; then
GRAFANA_TAG="1.0.0"
fi

if [ -z "$BUILDER" ]; then
BUILDER="podman"
fi

$BUILDER build -t $GRAFANA_IMAGE:$GRAFANA_TAG -f "$(dirname $0)"/Containerfile
$BUILDER tag $GRAFANA_IMAGE:$GRAFANA_TAG $GRAFANA_IMAGE:latest
$BUILDER build -t $GRAFANA_IMAGE:latest -f "$(dirname $0)"/Containerfile

0 comments on commit e13bf04

Please sign in to comment.