codevalet/webapp/Makefile

32 lines
614 B
Makefile

IMAGE_NAME=codevalet/webapp
all: check container
check: spec check-container
depends: Gemfile
./scripts/ruby bundle install
spec: depends monkeys.txt
./scripts/ruby bundle exec rspec -c
run: depends monkeys.txt
./scripts/ruby bundle exec puma
check-container: container
IMAGE_NAME=$(IMAGE_NAME) ./scripts/container-check
container: depends Dockerfile monkeys.txt
docker build -t $(IMAGE_NAME) .
deploy: check-container
docker push $(IMAGE_NAME):latest
clean:
rm -rf vendor
monkeys.txt: ../monkeys.txt
cp ../monkeys.txt .
.PHONY: all depends clean run check container spec check-container deploy