ensl.org/Makefile
Ari Timonen fe66edf712 Update docker version for CI
Get old circleci.yml
entry.sh env
Add test.sh for testing
Update Makefile for correct docker path
ADd env/test.sh
2018-04-15 12:51:22 +00:00

28 lines
502 B
Makefile

PROJECT ?= ensl/ensl.org
TAG ?= latest
ifdef REGISTRY
IMAGE=$(REGISTRY)/$(PROJECT):$(TAG)
else
IMAGE=$(PROJECT):$(TAG)
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) .
pull:
docker pull $(IMAGE) || true
push:
docker push $(IMAGE)
test: build
fig run web ./env/test.sh ./test.sh