Skip to content
Snippets Groups Projects
build.sh 700 B
#sh!/bin/bash -ex 
tag=$1
shift
test -n "$tag"
git diff $tag
# git rev-parse --short ${TAG}
hash=$(git rev-parse --short HEAD)
echo building rGIT${hash}
sleep 1
docker build "$@" --no-cache --build-arg BORT=${tag} . -f shellb3-cspp-py38.Dockerfile \
  -t shellb3-cspp-py38:latest \
  -t gitlab.ssec.wisc.edu:5555/cspp/buildbucket/shellb3/shellb3-centos7-gcc10-cspp-py38:rGIT${hash} \
  -t gitlab.ssec.wisc.edu:5555/cspp/buildbucket/shellb3/shellb3-centos7-gcc10-cspp-py38:latest 
echo docker push gitlab.ssec.wisc.edu:5555/cspp/buildbucket/shellb3/shellb3-centos7-gcc10-cspp-py38:rGIT${hash}
echo docker push gitlab.ssec.wisc.edu:5555/cspp/buildbucket/shellb3/shellb3-centos7-gcc10-cspp-py38:latest