From 955ddf07ff37dfaec77f8be4935ea11863f89a32 Mon Sep 17 00:00:00 2001 From: sneak Date: Sat, 1 Jun 2024 12:41:35 -0700 Subject: [PATCH] update to support go 1.22 and push to selfhosted repo --- Dockerfile | 5 ++--- Makefile | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 Makefile diff --git a/Dockerfile b/Dockerfile index f3fa251..0a34abd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ -FROM alpine:latest +FROM golang:1.22-alpine COPY entrypoint.sh /usr/local/bin/drone-plugin-golangci-lint RUN apk update && \ - apk add curl \ - go && \ + apk add curl && \ chmod +x /usr/local/bin/drone-plugin-golangci-lint && \ addgroup -S golangci-lint && adduser -S golangci-lint -G golangci-lint diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..cfd85da --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +export DOCKER_HOST := ssh://root@nbg1 +export DOCKER_IMAGE := sneak/drone-golangci-lint:latest +export REPO := git.eeqj.de/$(DOCKER_IMAGE) + +default: build_and_push + +build_and_push: build push + +login: + docker login git.eeqj.de + +build: + docker build -t $(REPO) . + +push: + docker push $(REPO)