Unverified Commit 333330a8 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

add publish-docker script

parent 56056234
Loading
Loading
Loading
Loading

scripts/publish-docker

0 → 100755
+18 −0
Original line number Diff line number Diff line
#!/bin/sh

set -e

VERSION="$1"
test -n "${VERSION}"

git checkout main
git pull
git checkout "${VERSION}"
git submodule update --init

docker build --no-cache -t dbris:${VERSION} .
docker build -t dbris:latest .
docker tag dbris:${VERSION} derfnull/dbris:${VERSION}
docker tag dbris:latest derfnull/dbris:latest
docker push derfnull/dbris:${VERSION}
docker push derfnull/dbris:latest