prophunt-garrysmod/hooks/pre_push
Lucas Briese 2d702db907 moved to multi multi stage build
docker ci executing hook with always pull before build. Therefore e.g. first image is created but right after overwritten by previous image.
2021-11-08 19:46:28 +01:00

14 lines
238 B
Bash

#!/bin/sh
set -o errexit
set -o nounset
imageSuffix=""
if [ "$SOURCE_BRANCH" != "master" ]; then
imageSuffix="-$(echo "$SOURCE_BRANCH" | sed 's/\//-/g')"
fi
cd ..
bash test/testBuild.sh "$imageSuffix" --skip-ttt --push