Update Makefile
This ps updates the build commands to allow the same format to be used in att-comdev projects Change-Id: I82c7083cfb1414c18b3e3bc14852a316e68736f3
This commit is contained in:
parent
f0cc8b6c1a
commit
4924e65a0f
7
Makefile
7
Makefile
@ -12,12 +12,15 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
DECKHAND_IMAGE_NAME ?= deckhand
|
DOCKER_REGISTRY ?= quay.io
|
||||||
|
IMAGE_NAME ?= deckhand
|
||||||
IMAGE_PREFIX ?= attcomdev
|
IMAGE_PREFIX ?= attcomdev
|
||||||
IMAGE_TAG ?= latest
|
IMAGE_TAG ?= latest
|
||||||
HELM ?= helm
|
HELM ?= helm
|
||||||
LABEL ?= commit-id
|
LABEL ?= commit-id
|
||||||
|
|
||||||
|
IMAGE := ${DOCKER_REGISTRY}/${IMAGE_PREFIX}/${IMAGE_NAME}:${IMAGE_TAG}
|
||||||
|
|
||||||
# Build Deckhand Docker image for this project
|
# Build Deckhand Docker image for this project
|
||||||
.PHONY: images
|
.PHONY: images
|
||||||
images: build_deckhand
|
images: build_deckhand
|
||||||
@ -40,7 +43,7 @@ dry-run: clean
|
|||||||
# Make targets intended for use by the primary targets above.
|
# Make targets intended for use by the primary targets above.
|
||||||
.PHONY: build_deckhand
|
.PHONY: build_deckhand
|
||||||
build_deckhand:
|
build_deckhand:
|
||||||
docker build -t $(IMAGE_PREFIX)/$(DECKHAND_IMAGE_NAME):$(IMAGE_TAG) --label $(LABEL) .
|
docker build -t $(IMAGE) --label $(LABEL) .
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
|
Loading…
Reference in New Issue
Block a user