-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🐛 octavia-cli: specific release job for octavia (#11517)
- Loading branch information
1 parent
d21fcbb
commit 2d8f66f
Showing
5 changed files
with
92 additions
and
30 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
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,14 @@ | ||
#!/usr/bin/env bash | ||
set -eu | ||
PREV_VERSION=$(grep -w VERSION .env | cut -d"=" -f2) | ||
GIT_REVISION=$(git rev-parse HEAD) | ||
|
||
pip install bumpversion | ||
bumpversion "$PART_TO_BUMP" | ||
|
||
NEW_VERSION=$(grep -w VERSION .env | cut -d"=" -f2) | ||
|
||
echo "Bumped version from ${PREV_VERSION} to ${NEW_VERSION}" | ||
echo ::set-output name=PREV_VERSION::${PREV_VERSION} | ||
echo ::set-output name=NEW_VERSION::${NEW_VERSION} | ||
echo ::set-output name=GIT_REVISION::${GIT_REVISION} |
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,19 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
. tools/lib/lib.sh | ||
|
||
if test -z "${DOCKER_PASSWORD}"; then | ||
echo 'DOCKER_PASSWORD for airbytebot not set.'; | ||
exit 1; | ||
fi | ||
|
||
docker login --username airbytebot --password "${DOCKER_PASSWORD}" | ||
|
||
source ./tools/bin/bump_version.sh | ||
|
||
echo "Building and publishing OCTAVIA version ${NEW_VERSION} for git revision ${GIT_REVISION}..." | ||
VERSION=$NEW_VERSION SUB_BUILD=OCTAVIA_CLI ./gradlew clean build | ||
./octavia-cli/publish.sh ${NEW_VERSION} ${GIT_REVISION} | ||
echo "Completed building and publishing OCTAVIA..." |