2019-10-15 16:29:50 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2020-09-27 21:32:03 +02:00
|
|
|
set -o errexit
|
|
|
|
set -o nounset
|
2019-10-15 16:29:50 +02:00
|
|
|
|
2020-09-27 21:32:03 +02:00
|
|
|
imageSuffix=""
|
|
|
|
if [ "$SOURCE_BRANCH" != "master" ]; then
|
|
|
|
imageSuffix="-$(echo "$SOURCE_BRANCH" | sed 's/\//-/g')"
|
|
|
|
fi
|
2019-10-17 12:38:20 +02:00
|
|
|
|
2020-09-27 21:32:03 +02:00
|
|
|
cd ..
|
2019-10-17 12:38:20 +02:00
|
|
|
|
2021-11-08 18:50:15 +01:00
|
|
|
bash test/testBuild.sh "$imageSuffix"
|
2019-10-17 12:38:20 +02:00
|
|
|
|
2020-09-27 21:32:03 +02:00
|
|
|
docker push "$DOCKER_REPO:gmod_debian${imageSuffix}"
|
|
|
|
docker push "$DOCKER_REPO:gmod_ttt_debian${imageSuffix}"
|
|
|
|
docker push "$DOCKER_REPO:latest${imageSuffix}"
|