Files
decap-stream/docker/Makefile
T

22 lines
400 B
Makefile
Raw Normal View History

2026-04-23 23:40:34 -03:00
SHELL := /bin/bash
IMAGE ?= git.kralot.cloud/decap-stream
TAG ?= ""
.PHONY: build push
build:
@if [ -z "$(TAG)" ]; then \
echo "❌ TAG não definida. Use ./build.sh ou passe TAG=x.x.x"; \
exit 1; \
fi
docker build --no-cache \
-f Dockerfile \
-t $(IMAGE):$(TAG) \
..
push:
@if [ -z "$(TAG)" ]; then \
echo "❌ TAG não definida."; \
exit 1; \
fi
docker push $(IMAGE):$(TAG)