Unify helper

This commit is contained in:
Max Winterstein
2021-02-27 00:30:46 +01:00
parent a25d47f581
commit 5ffd106fa6
5 changed files with 22 additions and 35 deletions

View File

@@ -1,22 +0,0 @@
#!/bin/bash
# see https://github.com/home-assistant/builder
if [[ $1 = "push" ]]; then
echo 'build and push...'
sleep 5
echo -n Dockerhub password for maxwinterstein:
read -s password
echo
docker run --privileged \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v $PWD/:/data homeassistant/amd64-builder \
--all -t /data --docker-user maxwinterstein --docker-password $password #--docker-hub-check
else
echo 'Just testing...'
sleep 5
docker run --privileged -v ~/.docker:/root/.docker \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v $PWD/:/data homeassistant/amd64-builder \
--amd64 --test -t /data
fi

View File

@@ -0,0 +1 @@
../helper-builder.sh