Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.

Commit 7bdd313

Browse files
committed
Added a simple makefile for iteration
1 parent bd5c1c5 commit 7bdd313

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
IMAGENAME?=lovoo/jenkins_exporter
2+
TAG?=latest
3+
JENKINS_SERVER?=https://myjenkins
4+
5+
debug: image
6+
docker run --rm -p 9118:9118 -e DEBUG=1 -e JENKINS_SERVER=$(JENKINS_SERVER) -e VIRTUAL_PORT=9118 $(IMAGENAME):$(TAG)
7+
8+
image:
9+
docker build -t $(IMAGENAME):$(TAG) .
10+
11+
push: image
12+
docker push $(IMAGENAME):$(TAG)
13+
14+
15+
.PHONY: image push debug

0 commit comments

Comments
 (0)