21 lines
424 B
Bash
Executable File
21 lines
424 B
Bash
Executable File
#!/bin/bash
|
|
#
|
|
dir=$(dirname $0)
|
|
|
|
if [[ ! -d core/ ]]; then
|
|
$dir/.pipeline/git-init.sh
|
|
fi
|
|
|
|
if [[ -n "$1" ]]; then
|
|
HASS_VERSION="$1"
|
|
elif [[ "$HASS_VERSION" == "" ]]; then
|
|
HASS_VERSION=$($dir/version.sh)
|
|
fi
|
|
|
|
docker build -t hass:${HASS_VERSION} .
|
|
|
|
docker image ls hass:${HASS_VERSION}
|
|
|
|
docker tag hass:${HASS_VERSION} git.sudo.is/ben/hass:${HASS_VERSION}
|
|
docker tag hass:${HASS_VERSION} git.sudo.is/ben/hass:latest
|