Something went wrong on our end
-
Ray Garcia authoredRay Garcia authored
build.sh 1021 B
#sh!/bin/bash -ex
git diff $tag
# git rev-parse --short ${TAG}
export REVNUM=GIT$( git rev-parse --verify HEAD --short )
echo building rGIT${REVNUM}
sleep 1
docker build --build-arg REVNUM=GIT$( git rev-parse --verify HEAD --short ) \
-f Dockerfile \
-t shellb3-cspp-py3:latest \
-t gitlab.ssec.wisc.edu:5555/cspp/buildbucket/shellb3/shellb3-centos7-gcc11-cspp-py3:rGIT${REVNUM} \
-t gitlab.ssec.wisc.edu:5555/cspp/buildbucket/shellb3/shellb3-centos7-gcc11-cspp-py3:latest
DOCK=${DOCK:-$HOME/dock}
test -d "$DOCK" || mkdir -p "$DOCK"
docker run -e SHELLB3_ARCHIVE_DIR=/dock -e PYTHON_VERSION=39 -e PORTABLESHELLB3=true \
-it --rm -v $HOME/dock:/dock -w /opt/ShellB3 shellb3-cspp-py3:latest \
/bin/bash -l -c "unset LANG; bash shallbethree.sh bin_dist"
echo "DONE at $(time)"
echo docker push gitlab.ssec.wisc.edu:5555/cspp/buildbucket/shellb3/shellb3-centos7-gcc11-cspp-py3:rGIT${REVNUM}
echo docker push gitlab.ssec.wisc.edu:5555/cspp/buildbucket/shellb3/shellb3-centos7-gcc11-cspp-py3:latest