f516b8df91
docker ci will create tag depending on source branch
20 lines
454 B
Bash
20 lines
454 B
Bash
#!/bin/sh
|
|
|
|
set -o errexit
|
|
#set -o pipefail
|
|
set -o nounset
|
|
|
|
imageSuffix=""
|
|
if [ "$SOURCE_BRANCH" != "master" ]; then
|
|
imageSuffix="-$(echo "$SOURCE_BRANCH" | sed 's/\//-/g')"
|
|
fi
|
|
|
|
#docker build -t "$DOCKER_REPO:lgsm_debian${imageSuffix}" "lgsm/"
|
|
cd ..
|
|
|
|
bash test/testBuild.sh "$imageSuffix" true
|
|
|
|
docker push "$DOCKER_REPO:gmod_debian${imageSuffix}"
|
|
docker push "$DOCKER_REPO:gmod_ttt_debian${imageSuffix}"
|
|
docker push "$DOCKER_REPO:latest${imageSuffix}"
|