partial revert of 7ef0b6e63e
the final else branch is used used when the nightly scheduled build runs
This commit is contained in:
parent
58f1132302
commit
ac3b128bf6
1 changed files with 4 additions and 1 deletions
|
@ -75,9 +75,12 @@ main() {
|
|||
sed -e 's/^FROM alpine:.*$/FROM alpine:edge/' Dockerfile > Dockerfile.edge
|
||||
BUILD_ARGS="-f Dockerfile.edge --tag $IMAGE:edge $BUILD_ARGS"
|
||||
IMAGE="$IMAGE:edge"
|
||||
else
|
||||
elif [ "$EVENT" = push ] ; then
|
||||
BUILD_ARGS="--tag $IMAGE:latest --tag $IMAGE:$TAG --tag ${IMAGE}:${TAG%%-*} --tag ${IMAGE}:stable $BUILD_ARGS"
|
||||
IMAGE="$IMAGE:latest"
|
||||
else
|
||||
BUILD_ARGS="--tag $IMAGE:latest --tag $IMAGE:$TAG --tag ${IMAGE}:${TAG%%-*} $BUILD_ARGS"
|
||||
IMAGE="$IMAGE:latest"
|
||||
fi
|
||||
build_image "$BUILD_ARGS"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue