From: Daniel Karbach Date: Thu, 7 Dec 2017 16:13:05 +0000 (+0100) Subject: added container build script X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=dd5fe70c79572987241705fe9aafb065a8abf332;p=blobs.git added container build script --- diff --git a/scripts/docker/build.bash b/scripts/docker/build.bash new file mode 100755 index 0000000..27aadc4 --- /dev/null +++ b/scripts/docker/build.bash @@ -0,0 +1,31 @@ +#!/bin/bash + +# execute from project root + +TGT_REPO="${TGT_REPO:-localhorsttv}" + +docker build "scripts/docker/archlinux-run-latest/" -t "${TGT_REPO}/archlinux-run:latest" --no-cache +docker build "scripts/docker/archlinux-build-latest/" -t "${TGT_REPO}/archlinux-build:latest" --no-cache +docker build "scripts/docker/centos-run-latest/" -t "${TGT_REPO}/centos-run:latest" --no-cache +docker build "scripts/docker/centos-build-latest/" -t "${TGT_REPO}/centos-build:latest" --no-cache +docker build "scripts/docker/debian-run-latest/" -t "${TGT_REPO}/debian-run:latest" --no-cache +docker build "scripts/docker/debian-build-latest/" -t "${TGT_REPO}/debian-build:latest" --no-cache +docker build "scripts/docker/debian-run-testing/" -t "${TGT_REPO}/debian-run:testing" --no-cache +docker build "scripts/docker/debian-build-testing/" -t "${TGT_REPO}/debian-build:testing" --no-cache +docker build "scripts/docker/ubuntu-run-latest/" -t "${TGT_REPO}/ubuntu-run:latest" --no-cache +docker build "scripts/docker/ubuntu-build-latest/" -t "${TGT_REPO}/ubuntu-build:latest" --no-cache +docker build "scripts/docker/ubuntu-run-devel/" -t "${TGT_REPO}/ubuntu-run:devel" --no-cache +docker build "scripts/docker/ubuntu-build-devel/" -t "${TGT_REPO}/ubuntu-build:devel" --no-cache + +docker push "${TGT_REPO}/archlinux-run:latest" +docker push "${TGT_REPO}/archlinux-build:latest" +docker push "${TGT_REPO}/centos-run:latest" +docker push "${TGT_REPO}/centos-build:latest" +docker push "${TGT_REPO}/debian-run:latest" +docker push "${TGT_REPO}/debian-build:latest" +docker push "${TGT_REPO}/debian-run:testing" +docker push "${TGT_REPO}/debian-build:testing" +docker push "${TGT_REPO}/ubuntu-run:latest" +docker push "${TGT_REPO}/ubuntu-build:latest" +docker push "${TGT_REPO}/ubuntu-run:devel" +docker push "${TGT_REPO}/ubuntu-build:devel"