diff options
author | Nat Lasseter <user@4574.co.uk> | 2018-12-03 15:08:26 +0000 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2018-12-03 15:08:26 +0000 |
commit | 6edcc43203b4745ac52861efc1eeac7e2860693d (patch) | |
tree | a9e56b3c90c6b0da84a8daa035e2750447d3defb /day03/Makefile | |
parent | 4b0aa584e0e88e3c16d7fcd7328432db80e0650b (diff) |
Added push to registry make target
Diffstat (limited to 'day03/Makefile')
-rw-r--r-- | day03/Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/day03/Makefile b/day03/Makefile index 6493e35..5309242 100644 --- a/day03/Makefile +++ b/day03/Makefile @@ -1,13 +1,17 @@ DAY = 03 -.PHONY: run clean +.PHONY: run clean push run: build - sudo docker run -it --rm aoc2018day$(DAY) + docker run -it --rm aoc2018day$(DAY) build: part* input - sudo docker build -t aoc2018day$(DAY) . + docker build -t aoc2018day$(DAY) . touch build clean: rm -f build + +push: build + docker tag aoc2018day$(DAY) advent.4574.co.uk/aoc2018day$(DAY) + docker push advent.4574.co.uk/aoc2018day$(DAY) |