2016-04-08 11:43:57 +00:00
|
|
|
YYYYMMDD := $(shell date +%Y%m%d)
|
2019-08-03 23:22:25 +00:00
|
|
|
BRANCH := $(shell git branch | sed -n -e 's/^\* \(.*\)/\1/p')
|
2016-04-08 11:43:57 +00:00
|
|
|
|
|
|
|
default: build
|
|
|
|
|
|
|
|
build:
|
|
|
|
script -q ./build.log docker build --no-cache -t sneak/sandbox .
|
|
|
|
docker tag sneak/sandbox sneak/sandbox:$(YYYYMMDD)
|
2016-04-08 12:28:32 +00:00
|
|
|
|
|
|
|
push:
|
2016-04-08 11:43:57 +00:00
|
|
|
docker push sneak/sandbox
|
|
|
|
docker push sneak/sandbox:$(YYYYMMDD)
|