Skip to content

Commit

Permalink
Add the ability to explicitly set which distributions to not try buil…
Browse files Browse the repository at this point in the history
…ding for

This is done by creating a .exclude-{rhel7,centos7,fedora} file inside the versioned directory
  • Loading branch information
pkubatrh committed Aug 15, 2017
1 parent bc6fca5 commit c31f497
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ DOCKERFILE_PATH=""
# Perform docker build but append the LABEL with GIT commit id at the end
function docker_build_with_version {
local dockerfile="$1"
local exclude=.exclude-${OS}
[ -e $exclude ] && echo "-> $exclude file exists for version $dir, skipping build." && return
[ ! -e "$dockerfile" ] && echo "-> $dockerfile for version $dir does not exist, skipping build." && return
echo "-> Version ${dir}: building image from '${dockerfile}' ..."

Expand Down

0 comments on commit c31f497

Please sign in to comment.