Skip to content

Commit

Permalink
Move bintray publish scripts to post-release
Browse files Browse the repository at this point in the history
  • Loading branch information
Piccirello committed Nov 14, 2019
1 parent 97c357c commit 55d4b65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
4 changes: 4 additions & 0 deletions scripts/post-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 0 additions & 12 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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

0 comments on commit 55d4b65

Please sign in to comment.