-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
22 lines (15 loc) · 752 Bytes
/
Makefile
File metadata and controls
22 lines (15 loc) · 752 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# simple makefile to build bbl-state-resource docker container
.DEFAULT_GOAL := help
GO_SRCS = $(shell find . -type f -name '*.go')
test: ## run all the tests
./scripts/test
docker: $(GO_SRCS) ## rebuild your local docker container, test all the builds
docker build --rm -t bbl-state-resource .
touch .docker_built # sentinel file indicating time we last built
.docker_built: docker
push: .docker_built ## commit and send it to it's canonical location within dockerhub
# git push
docker tag bbl-state-resource cfinfrastructure/bbl-state-resource
docker push cfinfrastructure/bbl-state-resource
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'