-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathMakefile
24 lines (20 loc) · 1004 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
.PHONY: release
SHELL := /bin/bash
PKG_NAME=$(shell basename `pwd`)
GIT_BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
DOCKER_CLEAN_VERSION=v2.0.4
IMAGE_BASE_NAME=zzrot/docker-clean
DOCKER_VERSION_TAG_1_11_1=$(IMAGE_BASE_NAME):docker-1.11.1
DOCKER_VERSION_TAG_LATEST=$(IMAGE_BASE_NAME)
DOCKER_VERSION_TAG_DOCKER_CLEAN_VERSION=$(IMAGE_BASE_NAME):$(DOCKER_CLEAN_VERSION)
DOCKER_TAG_LITE=$(IMAGE_BASE_NAME):$(DOCKER_CLEAN_VERSION)-lite
DOCKER_FILE_DIR_PATH=./dockerfiles
release:
docker build -t $(DOCKER_VERSION_TAG_LATEST) -f $(DOCKER_FILE_DIR_PATH)/Dockerfile .
docker build -t $(DOCKER_VERSION_TAG_1_11_1) -f $(DOCKER_FILE_DIR_PATH)/Dockerfile-1.11.1 .
docker build -t $(DOCKER_TAG_LITE) -f $(DOCKER_FILE_DIR_PATH)/Dockerfile-lite .
docker push $(DOCKER_VERSION_TAG_LATEST)
docker push $(DOCKER_VERSION_TAG_1_11_1)
docker push $(DOCKER_TAG_LITE)
docker tag $(DOCKER_VERSION_TAG_LATEST) $(DOCKER_VERSION_TAG_DOCKER_CLEAN_VERSION)
docker push $(DOCKER_VERSION_TAG_DOCKER_CLEAN_VERSION)