Files
matchbox/docker-build
Dalton Hubble 6e03326e01 fix: Separate Go build and Docker build
* Go builds should not require sudo. Docker builds should
unless it has been given root group permissions, which is
not recommended. Keep Go binary and Docker builds separate.
2016-01-22 13:42:23 -08:00

8 lines
150 B
Bash
Executable File

#!/bin/bash -e
REPO=coreos/bootcfg
GIT_SHA=$(./git-version)
docker build -q --rm=true -t $REPO:$GIT_SHA .
docker tag -f $REPO:$GIT_SHA $REPO:latest