blob: 15c1f9d9a0256de5bed09503782bc9718b8280c4 [file] [log] [blame]
Ray Milkey0caba7f2018-01-08 12:56:18 -08001#!/bin/bash -ex
2
3# exit on errors
4set -eu -o pipefail
5
6# set up ONOS build environment
7ONOS_ROOT=`pwd`
8. tools/build/envDefaults
9
10# get the sources
11git checkout $GERRIT_BRANCH
12
13# run the build
14onos-buck build onos
15
16# build and deploy the Docker image
17docker build -t onosproject/onos:${ONOS_VERSION} .
18docker login --username ${DOCKERHUB_USERNAME} --password ${DOCKERHUB_PASSWORD}
19docker push onosproject/onos:${ONOS_VERSION}