mirror of
https://github.com/fbartels/cloudron-drone-app.git
synced 2024-11-22 13:21:00 +00:00
20 lines
509 B
Makefile
20 lines
509 B
Makefile
DOCKER_REPO ?= fbartels
|
|
DOCKER_IMAGE := cloudron-cli
|
|
VERSION := $(shell grep cloudron@ Dockerfile | cut -d' ' -f 5 | cut -d@ -f 2)
|
|
|
|
.PHONY: default
|
|
default: push
|
|
|
|
.PHONY: build
|
|
build:
|
|
docker build . -t $(DOCKER_IMAGE)
|
|
|
|
.PHONY: tag
|
|
tag: build
|
|
docker tag $(DOCKER_IMAGE) $(DOCKER_REPO)/$(DOCKER_IMAGE):latest
|
|
docker tag $(DOCKER_IMAGE) $(DOCKER_REPO)/$(DOCKER_IMAGE):$(VERSION)
|
|
|
|
.PHONY: push
|
|
push: tag
|
|
docker push $(DOCKER_REPO)/$(DOCKER_IMAGE):latest
|
|
docker push $(DOCKER_REPO)/$(DOCKER_IMAGE):$(VERSION)
|