aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorCody Hiar <codyfh@gmail.com>2016-12-30 17:20:37 +0000
committerCody Hiar <codyfh@gmail.com>2016-12-30 17:20:37 +0000
commit4894ec4a92413f7d6fd2b43b9f137d86d3968cef (patch)
tree0107c73c8f20c97bae090119479765af3c158720 /Makefile
parentced9fc8f7cd6bc10d223baeb66ec774c94383449 (diff)
Push to dockerhub everytime I rebuild.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 7b597fa..b409a2d 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,7 @@ build: ## Build the base image
docker build -t thornycrackers/shellcheck shellcheck-builder
docker run --rm -it -v $(CURDIR):/mnt thornycrackers/shellcheck
docker build -t thornycrackers/neovim .
+ docker push $(IMAGENAME)
up: build ## Bring the container up
docker run -dP -v $(CURDIR):/app --name $(CONTAINERNAME) $(IMAGENAME) /bin/bash -c 'while true; do echo hi; sleep 1; done;'
@@ -22,5 +23,3 @@ enter: ## Enter the running container
clean: ## Remove the image and any stopped containers
docker rm $(CONTAINERNAME) || echo 'No container to remove'
- docker rmi $(IMAGENAME) || echo 'No image to remove'
-