Skip to content

Commit 5537a82

Browse files
author
Matthias Köppe
committed
tox.ini (docker): Only append to Dockertags if BUILD_TAG is set
1 parent 8cd1147 commit 5537a82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tox.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,9 @@ commands =
778778
docker: else \
779779
docker: PUSH_TAGS=$(echo $BUILD_IMAGE:$BUILD_TAG; for tag in {env:EXTRA_DOCKER_TAGS:}; do echo "$BUILD_IMAGE:$tag"; done); \
780780
docker: fi; \
781-
docker: echo $BUILD_IMAGE:$BUILD_TAG >> {envdir}/Dockertags; \
781+
docker: if [ -n "$BUILD_TAG" ]; then \
782+
docker: echo $BUILD_IMAGE:$BUILD_TAG >> {envdir}/Dockertags; \
783+
docker: fi; \
782784
docker: if [ x"{env:DOCKER_PUSH_REPOSITORY:}" != x -a x"$PUSH_TAGS" != x ]; then \
783785
docker: echo Pushing $PUSH_TAGS; \
784786
docker: for tag in $PUSH_TAGS; do \

0 commit comments

Comments
 (0)