-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build platform binaries as part of CI (#1909)
* Build platform binaries as part of CI Signed-off-by: Yuri Shkuro <[email protected]> * Separate steps more Signed-off-by: Yuri Shkuro <[email protected]>
- Loading branch information
1 parent
f68ece0
commit e17a37b
Showing
3 changed files
with
34 additions
and
23 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,30 +1,12 @@ | ||
#!/bin/bash | ||
# | ||
# Build UI and all Docker images | ||
|
||
set -e | ||
|
||
if [[ "$TRAVIS_SECURE_ENV_VARS" == "false" ]]; then | ||
echo "skip docker upload, TRAVIS_SECURE_ENV_VARS=$TRAVIS_SECURE_ENV_VARS" | ||
exit 0 | ||
fi | ||
|
||
BRANCH=${BRANCH:?'missing BRANCH env var'} | ||
|
||
# Only push images to Docker Hub for master branch or for release tags vM.N.P | ||
if [[ "$BRANCH" == "master" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "upload to Docker Hub, BRANCH=$BRANCH" | ||
else | ||
echo 'skip Docker upload, only allowed for tagged releases or master (latest tag)' | ||
exit 0 | ||
fi | ||
|
||
# TODO avoid building the UI when on a PR branch: https://github.com/jaegertracing/jaeger/issues/1908 | ||
source ~/.nvm/nvm.sh | ||
nvm use 10 | ||
|
||
export DOCKER_NAMESPACE=jaegertracing | ||
make docker | ||
|
||
for component in agent cassandra-schema es-index-cleaner es-rollover collector query ingester | ||
do | ||
export REPO="jaegertracing/jaeger-${component}" | ||
bash ./scripts/travis/upload-to-docker.sh | ||
done |
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,27 @@ | ||
#!/bin/bash | ||
|
||
# this script should only be run after build-docker-images.sh | ||
|
||
set -e | ||
|
||
BRANCH=${BRANCH:?'missing BRANCH env var'} | ||
|
||
if [[ "$TRAVIS_SECURE_ENV_VARS" == "false" ]]; then | ||
echo "skip docker upload, TRAVIS_SECURE_ENV_VARS=$TRAVIS_SECURE_ENV_VARS" | ||
exit 0 | ||
fi | ||
|
||
# Only push images to Docker Hub for master branch or for release tags vM.N.P | ||
if [[ "$BRANCH" == "master" || $BRANCH =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then | ||
echo "upload to Docker Hub, BRANCH=$BRANCH" | ||
else | ||
echo 'skip Docker upload, only allowed for tagged releases or master (latest tag)' | ||
exit 0 | ||
fi | ||
|
||
export DOCKER_NAMESPACE=jaegertracing | ||
for component in agent cassandra-schema es-index-cleaner es-rollover collector query ingester | ||
do | ||
export REPO="jaegertracing/jaeger-${component}" | ||
bash ./scripts/travis/upload-to-docker.sh | ||
done |