You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
498 B

#!/usr/bin/env bash
# build, tag, and push docker images
# exit if a command fails
set -o errexit
# exit if required variables aren't set
set -o nounset
# if no registry is provided, tag image as "local" registry
# create docker image
docker build \
-t "$registry"/chromecastserver:latest \
-f Dockerfile .
# if a registry is specified, push to it
if [ "$registry" != "local" ]; then
docker push "$registry"/chromecastserver:latest