Skip to content

Commit

Permalink
Run tests as part of container build (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
jordemort authored Nov 6, 2022
1 parent 744d0af commit 8bd0c35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ FROM golang:1.19 as build
WORKDIR /usr/src/traefik-forward-auth
COPY . .

RUN go test ./...
RUN CGO_ENABLED=0 go build -o ./traefik-forward-auth ./cmd

# Now copy it into our base image.
Expand Down

0 comments on commit 8bd0c35

Please sign in to comment.