prophunt-garrysmod/lgsm/hooks/pre_push

20 lines
454 B
Plaintext
Raw Normal View History

2019-10-15 16:29:50 +02:00
#!/bin/sh
set -o errexit
2019-10-15 16:29:50 +02:00
#set -o pipefail
set -o nounset
2019-10-15 16:29:50 +02:00
imageSuffix=""
if [ "$SOURCE_BRANCH" != "master" ]; then
imageSuffix="-$(echo "$SOURCE_BRANCH" | sed 's/\//-/g')"
fi
2019-10-17 12:38:20 +02:00
#docker build -t "$DOCKER_REPO:lgsm_debian${imageSuffix}" "lgsm/"
cd ..
2019-10-17 12:38:20 +02:00
bash test/testBuild.sh "$imageSuffix" true
2019-10-17 12:38:20 +02:00
docker push "$DOCKER_REPO:gmod_debian${imageSuffix}"
docker push "$DOCKER_REPO:gmod_ttt_debian${imageSuffix}"
docker push "$DOCKER_REPO:latest${imageSuffix}"