Repo init
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user