drone-plugin-golangci-lint/Makefile

19 lines
401 B
Makefile
Raw Normal View History

export DOCKER_HOST := ssh://root@nbg1
2024-06-01 19:47:13 +00:00
export DOCKER_IMAGE := sneak/drone-golangci-lint
export REPO := git.eeqj.de/$(DOCKER_IMAGE)
2024-06-01 19:47:13 +00:00
export TODAY := $(shell date -Idate -u)
default: build_and_push
build_and_push: build push
login:
docker login git.eeqj.de
build:
2024-06-01 19:47:13 +00:00
docker build --progress plain -t $(REPO):latest -t $(REPO):$(TODAY) .
push:
2024-06-01 19:47:13 +00:00
docker push $(REPO):latest
docker push $(REPO):$(TODAY)