Start Up is a simple deployment tool that performs given set of commands on multiple hosts in parallel.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
951 B

.PHONY: all build dist test install clean tools deps update-deps
all:
@echo "build - Build stup"
@echo "dist - Build stup distribution binaries"
@echo "test - Run tests"
@echo "install - Install binary"
@echo "clean - Clean up"
@echo ""
@echo "tools - Install tools"
@echo "vendor-list - List vendor package tree"
@echo "vendor-update - Update vendored packages"
build:
@mkdir -p ./bin
@rm -f ./bin/*
go build -o ./bin/stup ./cmd/stup
dist:
@mkdir -p ./bin
@rm -f ./bin/*
GOOS=darwin GOARCH=amd64 go build -o ./bin/stup-darwin64 ./cmd/stup
GOOS=linux GOARCH=amd64 go build -o ./bin/stup-linux64 ./cmd/stup
GOOS=windows GOARCH=amd64 go build -o ./bin/stup-windows64.exe ./cmd/stup
test:
go test ./...
install:
go install ./cmd/stup
clean:
@rm -rf ./bin
tools:
go get -u github.com/kardianos/govendor
vendor-list:
@govendor list
vendor-update:
@govendor update +external