forked from weather-tracer/api-server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
19 lines (15 loc) · 760 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
.PHONY:
# ==============================================================================
# Docker Control
HUB_NAME = someday94
HUB_USERNAME ?= $(shell bash -c 'read -p "Username: " username; echo $$username')
HUB_PASSWORD ?= $(shell bash -c 'read -s -p "Password: " pwd; echo $$pwd')
build_image:
@read -p "Enter Version Name:" version; \
docker rmi $(HUB_NAME)/weather-tracer-api-server:$$version; \
docker build -t $(HUB_NAME)/weather-tracer-api-server:$$version -f ./Dockerfile .; \
push_image:
@read -p "Enter Version Name:" version; \
docker rmi $(HUB_NAME)/weather-tracer-api-server:$$version; \
docker build -t $(HUB_NAME)/weather-tracer-api-server:$$version -f ./Dockerfile .; \
docker push $(HUB_NAME)/weather-tracer-api-server:$$version; \