ensl-plugin/Makefile
Ari Timonen ebc9da7318 Update for docker version
- Move ENSL Packge to pkg
- Update dockerfile to work
- Add more base amxx files
2018-04-18 15:28:33 -04:00

34 lines
597 B
Makefile

#REGISTRY ?= ensl
PROJECT ?= ensl-plugin
TAG ?= latest
ifdef REGISTRY
IMAGE=$(REGISTRY)/$(PROJECT):$(TAG)
else
IMAGE=$(PROJECT)
endif
all:
@echo "Available targets:"
@echo " * build - build a Docker image for $(IMAGE)"
@echo " * pull - pull $(IMAGE)"
@echo " * push - push $(IMAGE)"
@echo " * test - build and test $(IMAGE)"
build: Dockerfile
docker build . -t $(IMAGE)
run: build
docker run -v $(shell pwd)/build/:/var/build -ti $(IMAGE)
pull:
docker pull $(IMAGE) || true
push:
docker push $(IMAGE)
clean:
rm -rf $(shell pwd)/build/*
test: build
@echo "TODO"