fix ci docker hub
This commit is contained in:
		@@ -1,7 +1,6 @@
 | 
				
			|||||||
#!/bin/sh
 | 
					#!/bin/sh
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set -o errexit
 | 
					set -o errexit
 | 
				
			||||||
#set -o pipefail
 | 
					 | 
				
			||||||
set -o nounset 
 | 
					set -o nounset 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
imageSuffix=""
 | 
					imageSuffix=""
 | 
				
			||||||
@@ -9,10 +8,9 @@ if [ "$SOURCE_BRANCH" != "master" ]; then
 | 
				
			|||||||
	imageSuffix="-$(echo "$SOURCE_BRANCH" | sed 's/\//-/g')"
 | 
						imageSuffix="-$(echo "$SOURCE_BRANCH" | sed 's/\//-/g')"
 | 
				
			||||||
fi
 | 
					fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#docker build -t "$DOCKER_REPO:lgsm_debian${imageSuffix}" "lgsm/"
 | 
					 | 
				
			||||||
cd ..
 | 
					cd ..
 | 
				
			||||||
 | 
					
 | 
				
			||||||
bash test/testBuild.sh "$imageSuffix" true
 | 
					bash test/testBuild.sh "$imageSuffix"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
docker push "$DOCKER_REPO:gmod_debian${imageSuffix}"
 | 
					docker push "$DOCKER_REPO:gmod_debian${imageSuffix}"
 | 
				
			||||||
docker push "$DOCKER_REPO:gmod_ttt_debian${imageSuffix}"
 | 
					docker push "$DOCKER_REPO:gmod_ttt_debian${imageSuffix}"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2,7 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
readonly SUFFIX="$1"
 | 
					readonly SUFFIX="$1"
 | 
				
			||||||
readonly BUILD_LGSM="$(grep -qF '--skip-lgsm' <<< "$@" && echo false || echo true)"
 | 
					readonly BUILD_LGSM="$(grep -qF '--skip-lgsm' <<< "$@" && echo false || echo true)"
 | 
				
			||||||
readonly repository="index.docker.io/jusito/docker-ttt"
 | 
					readonly repository="${DOCKER_REPO:-jusito/docker-ttt}"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if [ "${DEBUGGING}" = "true" ]; then
 | 
					if [ "${DEBUGGING}" = "true" ]; then
 | 
				
			||||||
	set -o xtrace
 | 
						set -o xtrace
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user