mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-16 21:56:29 +00:00
update script
This commit is contained in:
parent
8d183a5ad3
commit
6204c81331
@ -1,26 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -ev
|
||||
|
||||
DOCKER_REPO=pvizeli
|
||||
DOCKER_IMAGE=yocto-build-env
|
||||
|
||||
# Get the absolute script location
|
||||
pushd `dirname $0` > /dev/null 2>&1
|
||||
SCRIPTPATH=`pwd`
|
||||
popd > /dev/null 2>&1
|
||||
|
||||
if [ -z "${REVISION}" ]; then
|
||||
echo "[ERROR] No revision specified."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Build
|
||||
docker build --pull --tag ${DOCKER_REPO}/${DOCKER_IMAGE}:${REVISION} -f ${SCRIPTPATH}/Dockerfile ${SCRIPTPATH}
|
||||
|
||||
# Tag
|
||||
docker tag ${DOCKER_REPO}/${DOCKER_IMAGE}:${REVISION} ${DOCKER_REPO}/${DOCKER_IMAGE}:latest
|
||||
|
||||
# Push
|
||||
docker push ${DOCKER_REPO}/${DOCKER_IMAGE}:${REVISION}
|
||||
docker push ${DOCKER_REPO}/${DOCKER_IMAGE}:latest
|
Loading…
x
Reference in New Issue
Block a user