mirror of
https://github.com/pomerium/pomerium.git
synced 2025-07-29 22:48:15 +02:00
Hadolint (#2363)
This commit is contained in:
parent
b03b0c4e93
commit
f1c76b23fc
3 changed files with 16 additions and 2 deletions
8
.github/workflows/test.yaml
vendored
8
.github/workflows/test.yaml
vendored
|
@ -182,6 +182,14 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
- name: Hadolint - Master
|
||||||
|
uses: hadolint/hadolint-action@v1.5.0
|
||||||
|
with:
|
||||||
|
Dockerfile: Dockerfile
|
||||||
|
- name: Hadolint - Debug
|
||||||
|
uses: hadolint/hadolint-action@v1.5.0
|
||||||
|
with:
|
||||||
|
Dockerfile: Dockerfile.debug
|
||||||
- name: build
|
- name: build
|
||||||
run: docker build .
|
run: docker build .
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
# hadolint ignore=DL3007
|
||||||
FROM golang:latest as build
|
FROM golang:latest as build
|
||||||
WORKDIR /go/src/github.com/pomerium/pomerium
|
WORKDIR /go/src/github.com/pomerium/pomerium
|
||||||
|
|
||||||
|
# hadolint ignore=DL3008
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y install zip
|
&& apt-get -y --no-install-recommends install zip
|
||||||
|
|
||||||
# cache depedency downloads
|
# cache depedency downloads
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
|
# hadolint ignore=DL3007
|
||||||
FROM golang:latest as build
|
FROM golang:latest as build
|
||||||
WORKDIR /go/src/github.com/pomerium/pomerium
|
WORKDIR /go/src/github.com/pomerium/pomerium
|
||||||
|
|
||||||
|
# hadolint ignore=DL3008
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y install zip
|
&& apt-get -y --no-install-recommends install zip
|
||||||
|
|
||||||
# cache depedency downloads
|
# cache depedency downloads
|
||||||
COPY go.mod go.sum ./
|
COPY go.mod go.sum ./
|
||||||
|
@ -16,9 +18,11 @@ RUN make build-debug NAME=pomerium-cli
|
||||||
RUN touch /config.yaml
|
RUN touch /config.yaml
|
||||||
RUN go get github.com/go-delve/delve/cmd/dlv
|
RUN go get github.com/go-delve/delve/cmd/dlv
|
||||||
|
|
||||||
|
# hadolint ignore=DL3007
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
ENV AUTOCERT_DIR /data/autocert
|
ENV AUTOCERT_DIR /data/autocert
|
||||||
WORKDIR /pomerium
|
WORKDIR /pomerium
|
||||||
|
# hadolint ignore=DL3018
|
||||||
RUN apk add --no-cache ca-certificates libc6-compat gcompat
|
RUN apk add --no-cache ca-certificates libc6-compat gcompat
|
||||||
COPY --from=build /go/src/github.com/pomerium/pomerium/bin/* /bin/
|
COPY --from=build /go/src/github.com/pomerium/pomerium/bin/* /bin/
|
||||||
COPY --from=build /config.yaml /pomerium/config.yaml
|
COPY --from=build /config.yaml /pomerium/config.yaml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue