diff --git a/scripts/post-release.sh b/scripts/post-release.sh index c3575686..1e3557e1 100755 --- a/scripts/post-release.sh +++ b/scripts/post-release.sh @@ -26,3 +26,7 @@ if [[ "$(echo $RESPONSE_CODE | head -c2)" != "20" ]]; then echo "Unable to upload, HTTP response code: $RESPONSE_CODE" exit 1 fi + +# publish binaries to bintray +scripts/publish-deb.sh +scripts/publish-rpm.sh diff --git a/scripts/release.sh b/scripts/release.sh index 22317d70..be740f30 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -2,22 +2,13 @@ set -e -CLEAN=0 - function cleanup { - if [ "$CLEAN" -eq 1 ]; then - return - fi - # delete docker creds set +e docker logout $DOCKER_REGISTRY docker logout $GCR_REGISTRY set -e rm -rf "$DOCKER_CONFIG" - - # we have cleaned - CLEAN=1 } trap cleanup EXIT @@ -28,6 +19,3 @@ echo $DOCKER_HUB_TOKEN | docker login -u $DOCKER_HUB_USER --password-stdin $DOCK echo $GOOGLE_CREDS | docker login -u $GCR_USER --password-stdin $GCR_REGISTRY GOOGLE_APPLICATION_CREDENTIALS=<(echo "$GOOGLE_CREDS") goreleaser release --rm-dist -cleanup -scripts/publish-deb.sh -scripts/publish-rpm.sh