mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* making things work * #506 - Add ability to login to a private docker registry * Rolling back "make things work" to test them out more. * Rolling back "make things work" to test them out more. * credentials from docker/config.json if ENV is missing * should get docker auth info just in the init * update glide lock * update glide * Switched to new go dep tool, glide is too frikin annoying. * Updated circle builds to use dep * Added GOPATH/bin to path. * Added GOPATH/bin to path. * Using regular make test, instead of docker one (not sure why it was using the docker one?).
25 lines
392 B
Makefile
25 lines
392 B
Makefile
all: vendor build
|
|
./fn
|
|
|
|
build:
|
|
go build -o fn
|
|
|
|
docker: vendor
|
|
GOOS=linux go build -o fn
|
|
docker build -t iron/fn .
|
|
docker push iron/fn
|
|
|
|
vendor:
|
|
dep ensure --update
|
|
|
|
test:
|
|
go test $(go list ./... | grep -v /vendor/)
|
|
|
|
release:
|
|
GOOS=linux go build -o fn_linux
|
|
GOOS=darwin go build -o fn_mac
|
|
GOOS=windows go build -o fn.exe
|
|
|
|
# install locally
|
|
install: build
|
|
sudo mv fn /usr/local/bin/
|