From d682bd52ff5c0cc1fa5707f2489e144db4fad6c8 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 2 Jun 2020 00:42:40 -0400 Subject: [PATCH] feat: only build image for non-build releases --- contrib/release-dokku | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/contrib/release-dokku b/contrib/release-dokku index 6b3fce765..d52990684 100755 --- a/contrib/release-dokku +++ b/contrib/release-dokku @@ -364,9 +364,7 @@ main() { fn-extract-package "$IS_RELEASE" "dokku-${NEXT_VERSION}-1.x86_64.rpm" || log-fail "Error extracting rpm package" cp -f "build/dokku_${NEXT_VERSION}_amd64.deb" build/dokku.deb - if [[ "$RELEASE" == "build" ]]; then - fn-build-docker-image "latest" || log-fail "Error building docker image" - else + if [[ "$RELEASE" != "build" ]]; then 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"