-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from Soluto/push-cli-image
push cli docker image
- Loading branch information
Showing
2 changed files
with
60 additions
and
0 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,13 @@ | ||
#!/bin/bash | ||
|
||
echo checking init container version | ||
CLI_VERSION=$(grep -E "\"version\"" ./cli/package.json | grep -Eo "[0-9.]*(-rc[0-9]*)?") | ||
CLI_TAG="cli-docker-$CLI_VERSION" | ||
export CLI_DOCKER_TAG="latest" | ||
if [[ "$(git tag | grep -c "$CLI_TAG")" == "0" ]]; then | ||
echo tagging "$CLI_TAG" | ||
git tag "$CLI_TAG" | ||
export CLI_DOCKER_TAG=$CLI_VERSION | ||
fi | ||
|
||
echo "export CLI_DOCKER_TAG=$CLI_DOCKER_TAG" >> "$BASH_ENV" |