ci-images/ko/Dockerfile
Peter Kurfer 47662e9786
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is passing
feat(ci): add Drone config
2023-02-20 16:52:18 +01:00

9 lines
501 B
Docker

FROM docker.io/alpine:latest as downloader
RUN apk add -U --no-cache curl jq && \
export KO_VERSION=$(curl https://api.github.com/repos/ko-build/ko/releases | jq -r '. | first |.tag_name | capture("(?<version>[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+)") | .version') && \
curl -L "https://github.com/ko-build/ko/releases/download/v${KO_VERSION}/ko_${KO_VERSION}_Linux_x86_64.tar.gz" | tar xvz -C /tmp
FROM docker.io/golang:1.20-bullseye as final
COPY --from=downloader /tmp/ko /usr/local/bin/ko