This repository has been archived by the owner on Jan 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds build test and publishing instructions
This change adds the following changes: - Adds detailed instructions for building, testing, releasing, and publishing to CONTRIBUTING.md - Adds a mechanism for contributors outside of CyberArk to build and test new versions of the Marketplace without requiring access to the conjur-cloud-launcher-onboard GCP project. - Updates the Google Marketplace schema we use to Version 2.
- Loading branch information
diverdane
committed
Mar 19, 2020
1 parent
ba47340
commit 42b03ce
Showing
9 changed files
with
689 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash -e | ||
|
||
CURRENT_DIR=$("$(dirname "$0")/abspath") | ||
|
||
# xgo because it allows cross-compilation | ||
GORELEASER_IMAGE="cyberark/goreleaser:latest-xgo" | ||
|
||
GORELEASER_ARGS=("--rm-dist") | ||
if [[ "${SNAPSHOT}" == "true" ]]; then | ||
GORELEASER_ARGS+=("--snapshot") | ||
fi | ||
|
||
echo "Current dir: $CURRENT_DIR" | ||
|
||
# TODO: the image cyberark/goreleaser:latest-xgo will need to be pushed | ||
# TODO: to Dockerhub, and the command below should become | ||
# TODO: docker pull cyberark/goreleaser:latest-xgo | ||
# NOTE: Piping the Dockerfile sends an empty context to docker build | ||
docker build -t "${GORELEASER_IMAGE}" - < "$CURRENT_DIR/Dockerfile.releaser" | ||
|
||
docker run --rm -t \ | ||
--volume "$CURRENT_DIR/..:/secretless-broker" \ | ||
--workdir /secretless-broker \ | ||
"${GORELEASER_IMAGE}" "${GORELEASER_ARGS[@]}" | ||
|
||
echo "Releases built. Archives can be found in dist/goreleaser" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters