Compare commits

..

1 Commits

Author SHA1 Message Date
Jeffrey Paul 91adcf7731 fix
continuous-integration/drone/pr Build encountered an error Details
continuous-integration/drone/push Build is failing Details
2022-11-28 02:43:36 +01:00
2 changed files with 5 additions and 4 deletions

View File

@ -9,7 +9,8 @@ steps:
- name: dockersock
path: /var/run/docker.sock
commands:
#- echo nameserver 116.202.204.30 > /etc/resolv.conf
- echo nameserver 116.202.204.30 > /etc/resolv.conf
- docker ps -a
- docker build .
volumes:
- name: dockersock

View File

@ -1,5 +1,5 @@
## lint image
FROM golangci/golangci-lint:v1.50.1
FROM golangci/golangci-lint@sha256:9ae3767101cd3468cdaea5b6573dadb358013e05ac38abe37d53646680fd386c AS linter
RUN mkdir -p /build
WORKDIR /build
@ -7,7 +7,7 @@ COPY ./ ./
RUN golangci-lint run
## build image:
FROM golang:1.19.3-bullseye AS builder
FROM golang:1.15-buster AS builder
RUN apt update && apt install -y make bzip2
@ -25,7 +25,7 @@ RUN go mod vendor
RUN tar -c . | bzip2 > /src.tbz2
## output image:
FROM debian:bullseye-slim AS final
FROM debian:buster-slim 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