Skip to content
Snippets Groups Projects
Commit 4c524f48 authored by Gandalf's avatar Gandalf
Browse files

Merge branch 'add-build-script' into 'autoclave'

Add build script for docker

See merge request !10
parents 0e0f57af ce193289
No related branches found
No related tags found
1 merge request!10Add build script for docker
echo Build started on `date`
export IMAGE_TAG=`git ls-remote --heads origin | grep $(git rev-parse HEAD) | cut -d / -f 3`
if [ "$IMAGE_TAG" = "master" ] ; then export IMAGE_TAG=latest ; fi
export REPO_PATH=`git rev-parse --show-toplevel`
export REPO_NAME=`basename $REPO_PATH`
export IMAGE_REPO_NAME="hive/$REPO_NAME"
export SOURCE_COMMIT=`git rev-parse HEAD`
echo Building branch $IMAGE_TAG from $IMAGE_REPO_NAME
docker build . -t $IMAGE_REPO_NAME:$IMAGE_TAG --build-arg SOURCE_COMMIT="${SOURCE_COMMIT}" --build-arg DOCKER_TAG="${IMAGE_TAG}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment