diff --git a/contrib/release-dokku b/contrib/release-dokku index 75339bc66..c8dd76fd0 100755 --- a/contrib/release-dokku +++ b/contrib/release-dokku @@ -370,9 +370,12 @@ main() { fn-publish-package "$IS_RELEASE" "deb" "build/dokku_${NEXT_VERSION}_amd64.deb" || log-fail "Error publishing deb package" fn-publish-package "$IS_RELEASE" "rpm" "build/dokku-${NEXT_VERSION}-1.x86_64.rpm" || log-fail "Error publishing rpm package" fn-build-docker-image "$NEXT_VERSION" || log-fail "Error building docker image" - docker tag "dokku/dokku:$VERSION" "dokku/dokku:latest" - docker push "dokku/dokku:$VERSION" - docker push "dokku/dokku:latest" + + if [[ "$IS_RELEASE" == "true" ]]; then + docker tag "dokku/dokku:$VERSION" "dokku/dokku:latest" + docker push "dokku/dokku:$VERSION" + docker push "dokku/dokku:latest" + fi fn-repo-push-tags "$IS_RELEASE" fi