Skip to content
This repository has been archived by the owner on Oct 16, 2024. It is now read-only.

Commit

Permalink
Add Makefile for building locally and tagging (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdpauw committed Apr 20, 2022
1 parent 93ac917 commit 0267a39
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
.DEFAULT_GOAL := help
.PHONY: tag build

version=$(shell cat .version)

tag: ## Tag git repo
git tag -a ${version} -m "Bump ${version}"
git push origin main --follow-tags

build: ## Build Docker image
echo "[${version}]"
docker build --tag ghrc.io/thinkinglabs/terraform:${version} .

help:
@grep -h -E '^[a-zA-Z0-9_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'

0 comments on commit 0267a39

Please sign in to comment.