Corrected indentation and version name
@@ -200,6 +200,7 @@ docker_commands () {
done
docker build --label build.sha=${build_sha} -t sensuapp/sensu-go .
+
# push master - tags and pushes latest master docker build only
if [ "$push" == "push" ] && [ "$release" == "master" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
@@ -210,7 +211,7 @@ docker_commands () {
elif [ "$push" == "push" ] && [ "$release" == "versioned" ]; then
docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"
local version_alpha=$(echo sensuapp/sensu-go:$(cat version/version.txt)-alpha)
- local version_alpha_iteration=$(echo sensuapp/sensu-go:$(cat version/version.txt)-$(cat version/prerelease.txt)-$(cat version/iteration.txt))
+ local version_alpha_iteration=$(echo sensuapp/sensu-go:$(cat version/version.txt)-$(cat version/prerelease.txt).$(cat version/iteration.txt))
docker tag sensuapp/sensu-go:latest $version_alpha_iteration
docker push $version_alpha_iteration
docker tag $version_alpha_iteration $version_alpha
