Compare commits

..

No commits in common. "9a68d795b2869dc6f616b5895430946bef193f85" and "9b839e9b9700b60a076b90cb7e19511fb6d87456" have entirely different histories.

2 changed files with 9 additions and 4 deletions

View File

@ -7,7 +7,6 @@ steps:
settings:
repo: foo/bar
dry_run: true
target: final
tags:
- ${DRONE_COMMIT_SHA}
- ${DRONE_BRANCH}

View File

@ -7,9 +7,15 @@ COPY ./ ./
RUN golangci-lint run
## build image:
FROM golang:1.15-buster AS builder
#ARG GO_VERSION=1.15
FROM golang:1.15-alpine AS builder
RUN apt update && apt install -y make bzip2
RUN mkdir /user && \
echo 'nobody:x:65534:65534:nobody:/:' > /user/passwd && \
echo 'nobody:x:65534:' > /user/group
RUN apk add --no-cache ca-certificates git bzip2 make gcc libc-dev
#RUN GO111MODULE=on go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.31.0
RUN mkdir -p /build
WORKDIR /build
@ -26,7 +32,7 @@ RUN go mod vendor
RUN tar -c . | bzip2 > /src.tbz2
## output image:
FROM debian:buster-slim AS final
FROM ubuntu:focal AS final
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build/httpd /app/httpd
COPY --from=builder /src.tbz2 /usr/local/src/src.tbz2