-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix coverage, badge, docker release on in master branch (#2218)
Equivalent coverage and docker image release from gitlab ci. Except release is a docker image release and will also add s3 release in future, since gcloud storage requires google login, which is inconvenient for used in scripts Test Plans -------------- coverage only in master, beta, stable branch and docker release only in master branch (For test purpose also this cov-release branch but will be removed). badge updated. docker release in beta/stable branch will be added but not ready now as tests in beta/stable is more strict
- Loading branch information
1 parent
5b9b173
commit f605a11
Showing
5 changed files
with
24 additions
and
38 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 |
---|---|---|
@@ -1,22 +1,14 @@ | ||
#!/bin/bash | ||
function make_sure { | ||
read -p "$1. Are you sure [y/n]? " -n 1 -r | ||
echo | ||
if [[ ! $REPLY =~ ^[Yy]$ ]] | ||
then | ||
exit 1 | ||
fi | ||
} | ||
set -euo pipefail | ||
|
||
branch=$(git rev-parse --abbrev-ref HEAD) | ||
if [ "${branch}" != "master" ]; then | ||
make_sure "Not in master branch" | ||
fi | ||
|
||
if [ -n "$(git status -s)" ]; then | ||
make_sure "There's untracked files or uncommitted changes" | ||
fi | ||
branch=${BUILDKITE_BRANCH} | ||
commit=${BUILDKITE_COMMIT} | ||
|
||
make | ||
docker tag nearcore nearprotocol/nearcore:latest | ||
docker push nearprotocol/nearcore:latest | ||
# Here we don't check master, beta and stable criteria, they have to be checked in buildkite pipeline | ||
# before this script. And nearprotocol/nearcore:latest must be manually tagged from a verified stable. | ||
docker tag nearcore nearprotocol/nearcore:${branch}-${commit} | ||
docker tag nearcore nearprotocol/nearcore:${branch} | ||
set -x | ||
docker push nearprotocol/nearcore:${branch}-${commit} | ||
docker push nearprotocol/nearcore:${branch} |
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 was deleted.
Oops, something went wrong.