Skip to content

Commit

Permalink
Configure BUILDTOOL_IMAGE (#16)
Browse files Browse the repository at this point in the history
* Configure BUILDTOOL_IMAGE

* Fix CICD version management

* Update bin/change-version.sh

* Apply suggestions from code review
  • Loading branch information
unai-ttxu committed Jun 1, 2022
1 parent 5632f65 commit 8e74ce7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*.dll
*.so
*.dylib
bin

# Test binary, build with `go test -c`
*.test
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ e2e/%:

# Stratio CICD flow
change-version:
@echo $(VERSION) > VERSION
bin/change-version.sh $(version)
17 changes: 17 additions & 0 deletions bin/change-version.sh
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

0 comments on commit 8e74ce7

Please sign in to comment.