Saibotk
7f0ee8498f
chore(deps): update docker.io/library/golang docker tag to v1.21.6 See merge request saibotk.de/gitlab-hetzner-runner!66
22 lines
656 B
Docker
22 lines
656 B
Docker
FROM docker.io/library/golang:1.21.6-alpine as driver-builder
|
|
|
|
# renovate: datasource=git-tags depName=https://github.com/JonasProgrammer/docker-machine-driver-hetzner.git
|
|
ARG HETZNER_VERSION=5.0.2
|
|
|
|
ENV GO111MODULE=on
|
|
|
|
RUN mkdir -p /go/src/app
|
|
|
|
WORKDIR /go/src/app
|
|
|
|
RUN apk add git
|
|
|
|
RUN git clone --depth 1 --branch "$HETZNER_VERSION" https://github.com/JonasProgrammer/docker-machine-driver-hetzner.git ./
|
|
|
|
RUN go build -o docker-machine-driver-hetzner
|
|
|
|
FROM docker.io/gitlab/gitlab-runner:alpine-v16.4.1
|
|
|
|
LABEL maintainer="Sheogorath <sheogorath@shivering-isles.com>"
|
|
|
|
COPY --from=driver-builder /go/src/app/docker-machine-driver-hetzner /usr/local/bin/
|