ZSHFiles/custom/docker.zsh
2020-04-06 23:30:24 +02:00

6 lines
242 B
Bash

export DOCKER_HOST=ssh://nbg-0
function build-n-push {
docker build ${1} --tag=localhost:5000/${2} --force-rm --compress && docker push localhost:5000/${2} # --squash can eat disk space quickly due to diffs not being taken in calculation
}