<commit_before>PKG := github.com/toolhouse/verify-deployment-manifest
DOCKER_IMAGE := toolhouse/verify-deployment-manifest
GOVERSION := 1.8.1

COMMIT := $(strip $(shell git rev-parse --short HEAD))
VERSION := $(strip $(shell git describe --always --dirty))

.PHONY: linux-amd64 docker-build docker-push update-ca help
.DEFAULT_GOAL := help	

linux-amd64:
	docker run --env GOOS=linux --env GOARCH=amd64 --env CGO_ENABLED=0 --rm -v "`pwd`":"/go/src/$(PKG)" -w /go/src/$(PKG) golang:$(GOVERSION) go build -a -tags netgo -ldflags '-w' -o verify-deployment-manifest-linux_amd64

docker-image: linux-amd64 ## Build a docker image
	docker build \
		--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
		--build-arg VERSION=$(VERSION) \
		--build-arg VCS_REF=$(COMMIT) \
		-t $(DOCKER_IMAGE):$(VERSION) .

docker-push: ## Push the docker image to DockerHub<commit_msg>Updates Go version to 1.8.3<commit_after>PKG := github.com/toolhouse/verify-deployment-manifest
DOCKER_IMAGE := toolhouse/verify-deployment-manifest
GOVERSION := 1.8.3

COMMIT := $(strip $(shell git rev-parse --short HEAD))
VERSION := $(strip $(shell git describe --always --dirty))

.PHONY: linux-amd64 docker-build docker-push update-ca help
.DEFAULT_GOAL := help	

linux-amd64:
	docker run --env GOOS=linux --env GOARCH=amd64 --env CGO_ENABLED=0 --rm -v "`pwd`":"/go/src/$(PKG)" -w /go/src/$(PKG) golang:$(GOVERSION) go build -a -tags netgo -ldflags '-w' -o verify-deployment-manifest-linux_amd64

docker-image: linux-amd64 ## Build a docker image
	docker build \
		--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
		--build-arg VERSION=$(VERSION) \
		--build-arg VCS_REF=$(COMMIT) \
		-t $(DOCKER_IMAGE):$(VERSION) .

docker-push: ## Push the docker image to DockerHub
{'fraction_non_alphanumeric': 0.17869415807560138, 'fraction_numerical': 0.017754868270332187, 'mean_word_length': 3.9211267605633804, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7399083', 'n_tokens_mistral': 693, 'n_tokens_neox': 647, 'n_words': 157}