ipabusedb-docker-reporter: pin docker CLI image, add make push, fix stale names
Pin the docker:cli source to 29.9.3 plus its manifest list digest, tag the image as git.eeqj.de/sneak/ipabusedb-docker-reporter with the date and latest, add a push target, and rename the remaining ipabusedb-docker-ssh references in the README and package doc.
This commit is contained in:
1 parent
1aa7d84401
commit
bce9d01142
4 files changed
+29
-14
No files matched your search
@@ -1,12 +1,18 @@
|
||||
BIN := ipabusedb-docker-reporter
|
||||
IMAGE := git.eeqj.de/sneak/$(BIN)
|
||||
TAG := $(shell date -u +%Y-%m-%d)
|
||||
|
||||
.PHONY: build test lint fmt fmt-check check clean image
|
||||
.PHONY: build test lint fmt fmt-check check clean image push
|
||||
|
||||
build:
|
||||
go build -o $(BIN) .
|
||||
|
||||
image:
|
||||
docker build -t $(BIN) .
|
||||
docker build -t $(BIN) -t $(IMAGE):$(TAG) -t $(IMAGE):latest .
|
||||
|
||||
push: image
|
||||
docker push $(IMAGE):$(TAG)
|
||||
docker push $(IMAGE):latest
|
||||
|
||||
test:
|
||||
go test ./...
|
||||
|
||||
Reference in new issue
Block a user