Skip to content

Commit

Permalink
feat(ci): fail early when no go binaries are available
Browse files Browse the repository at this point in the history
(cherry picked from commit 510ab02)
  • Loading branch information
remcowesterhoud authored and npepinpe committed Feb 10, 2022
1 parent 4ae0013 commit 288dab3
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ci/pipelines/release_zeebe.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ spec:
}

container('golang') {
sh '.ci/scripts/release/post-github.sh'
sh '.ci/scripts/release/post-release-go.sh'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion .ci/pipelines/release_zeebe_java11.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ spec:
}

container('golang') {
sh '.ci/scripts/release/post-github.sh'
sh '.ci/scripts/release/post-release-go.sh'
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cd "clients/go/internal/embedded"

echo "${DEVELOPMENT_VERSION}" > data/VERSION
"${GOPATH}/go-bindata" -pkg embedded -o embedded.go -prefix data/ data/
go-bindata -pkg embedded -o embedded.go -prefix data/ data/

git commit -am "build(project): prepare next development version (Go client)"
git push origin "${RELEASE_BRANCH}"
Expand Down
11 changes: 11 additions & 0 deletions .ci/scripts/release/prepare-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,14 @@ export CGO_ENABLED=0
export GO111MODULE=on
go get -u "github.com/smola/gocompat/...@v0.3.0"
go get -u "github.com/go-bindata/go-bindata/...@v3"

# Verify binary is available under $GOPATH/bin
if ! command -v go-bindata > /dev/null 2>&1; then
echo "Failed to install go-bindata, go-bindata is not available on the path"
exit 1
fi

if ! command -v gocompat > /dev/null 2>&1; then
echo "Failed to install gocopmat, gocompat is not available on the path"
exit 1
fi

0 comments on commit 288dab3

Please sign in to comment.