Files
MediaFusion/Makefile
T
2024-01-29 23:18:43 +05:30

26 lines
438 B
Makefile

# Makefile
# Image tag
TAG ?= beta
# Docker image name
IMAGE_NAME = mediafusion
# Docker repository
DOCKER_REPO = mhdzumair
# Docker image with tag
DOCKER_IMAGE = $(DOCKER_REPO)/$(IMAGE_NAME):$(TAG)
.PHONY: build tag push
build:
docker build --build-arg GIT_REV=$(TAG) -t $(IMAGE_NAME):$(TAG) -f deployment/Dockerfile .
tag:
docker tag $(IMAGE_NAME):$(TAG) $(DOCKER_IMAGE)
push:
docker push $(DOCKER_IMAGE)
all: build tag push