Skip to content

Commit

Permalink
added Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
mrporcles committed Aug 16, 2023
1 parent 429807a commit cd705db
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!make
include Makefile.env

# Put it first so that "make" without argument is like "make help".
build: docker-build
release: docker-build docker-release

.PHONY: docker-build docker-release

docker-build:
docker build --build-arg VERSION="${version}" \
-t "${CONTAINER_REPOSITORY}:${version}" \
-t "${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}:${version}" \
.
docker image prune -f

docker-release:
docker push ${CONTAINER_REGISTRY}/${CONTAINER_REPOSITORY}:${version}
5 changes: 5 additions & 0 deletions Makefile.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NAME = markdown-to-confluence
IMAGE_SOURCE = https://github.com/vmware-tanzu-labs/markdown-to-confluence
CONTAINER_REGISTRY = ghcr.io/vmware-tanzu-labs
CONTAINER_REPOSITORY = markdown-to-confluence
version = latest

0 comments on commit cd705db

Please sign in to comment.