forked from projectcapsule/capsule
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Configure BUILDTOOL_IMAGE * Fix CICD version management * Update bin/change-version.sh * Apply suggestions from code review
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
*.dll | ||
*.so | ||
*.dylib | ||
bin | ||
|
||
# Test binary, build with `go test -c` | ||
*.test | ||
|
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 |
---|---|---|
|
@@ -156,4 +156,4 @@ e2e/%: | |
|
||
# Stratio CICD flow | ||
change-version: | ||
@echo $(VERSION) > VERSION | ||
bin/change-version.sh $(version) |
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,17 @@ | ||
#!/bin/bash -e | ||
|
||
BASEDIR="$(realpath "$(dirname "$0")/..")" | ||
|
||
cd "$BASEDIR" | ||
|
||
PATH=$(pwd)/dist:$PATH | ||
|
||
if [[ -z "$1" ]]; then | ||
VERSION=$(<"$BASEDIR/VERSION") | ||
else | ||
VERSION=$1 | ||
fi | ||
|
||
echo "Modifying Capsule version to: $VERSION" | ||
|
||
echo "$VERSION" > VERSION |