-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
34 lines (28 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
APP_NAME = emergency-response-client-app
SERVER = quay.io
ORG = emergencyresponsedemo
RELEASE_TAG ?= $(CIRCLE_TAG)
CONTAINER_LATEST_TAG = ${SERVER}/${ORG}/$(APP_NAME):latest
CONTAINER_MASTER_TAG = ${SERVER}/${ORG}/$(APP_NAME):master
CONTAINER_RELEASE_TAG = ${SERVER}/${ORG}/$(APP_NAME):$(RELEASE_TAG)
.PHONY: container_build_latest
container_build_latest:
docker build -t $(CONTAINER_LATEST_TAG) .
.PHONY: container_push_latest
container_push_latest:
@docker login -u $(QUAY_USERNAME) -p $(QUAY_PASSWORD) ${SERVER}
docker push $(CONTAINER_LATEST_TAG)
.PHONY: container_build_release
container_build_release:
docker build -t $(CONTAINER_RELEASE_TAG) .
.PHONY: container_push_release
container_push_release:
@docker login -u $(QUAY_USERNAME) -p $(QUAY_PASSWORD) ${SERVER}
docker push $(CONTAINER_RELEASE_TAG)
.PHONY: container_build_master
container_build_master:
docker build -t $(CONTAINER_MASTER_TAG) .
.PHONY: container_push_master
container_push_master:
@docker login -u $(QUAY_USERNAME) -p $(QUAY_PASSWORD) ${SERVER}
docker push $(CONTAINER_MASTER_TAG)