diff --git a/scripts/release.sh b/scripts/release.sh index 4ce051298..4d5be4c30 100755 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -9,7 +9,7 @@ function release { echo "Building and releasing $tag..." echo "Pushing docker image..." echo ${DOCKER_PASS} | docker login --username ${DOCKER_USER} --password-stdin - docker tag ${DOCKER_REPO}:latest + docker tag ${DOCKER_REPO}:${tag#v} ${DOCKER_REPO}:latest docker push ${DOCKER_REPO} echo "Building and pushing binaries" [[ -e "$notes" ]] && goreleaser --release-notes "$notes" || goreleaser