Skip to content

Commit

Permalink
Added blacklist
Browse files Browse the repository at this point in the history
Debian-9 is currently failing build because of package issues
  • Loading branch information
mblaschke committed Mar 5, 2016
1 parent 19659fa commit 8247751
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .bin/functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ function dockerPushImage() {
docker push "${CONTAINER_NAME}:${CONTAINER_TAG}"
}

function checkBlacklist() {
echo "$*" | grep -vF "$(cat ${WORKDIR}/BLACKLIST)"
}

###
# Push image
#
Expand All @@ -226,7 +230,10 @@ function foreachDockerfileInPath() {
if [ -f "${DOCKERFILE_PATH}/Dockerfile" ]; then
DOCKERFILE="${DOCKERFILE_PATH}/Dockerfile"
TAGNAME=$(basename "${DOCKERFILE_PATH}")
${CALLBACK}

if [[ -n "$(checkBlacklist "${BASENAME}:${TAGNAME}")" ]]; then
${CALLBACK}
fi
fi
done
}
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,6 @@ insert_final_newline = false

[DOCKER_TAG_LATEST]
insert_final_newline = false

[BLACKLIST]
insert_final_newline = false
2 changes: 2 additions & 0 deletions BLACKLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
webdevops/php:debian-9
webdevops/php-apache:debian-9

0 comments on commit 8247751

Please sign in to comment.