update to support go 1.22 and push to selfhosted repo
This commit is contained in:
parent
a8204ad429
commit
955ddf07ff
@ -1,10 +1,9 @@
|
|||||||
FROM alpine:latest
|
FROM golang:1.22-alpine
|
||||||
|
|
||||||
COPY entrypoint.sh /usr/local/bin/drone-plugin-golangci-lint
|
COPY entrypoint.sh /usr/local/bin/drone-plugin-golangci-lint
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk add curl \
|
apk add curl && \
|
||||||
go && \
|
|
||||||
chmod +x /usr/local/bin/drone-plugin-golangci-lint && \
|
chmod +x /usr/local/bin/drone-plugin-golangci-lint && \
|
||||||
addgroup -S golangci-lint && adduser -S golangci-lint -G golangci-lint
|
addgroup -S golangci-lint && adduser -S golangci-lint -G golangci-lint
|
||||||
|
|
||||||
|
16
Makefile
Normal file
16
Makefile
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user