Skip to content

Commit

Permalink
add GOFLAGS -mod=vendor to test stage
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Suraci <[email protected]>
  • Loading branch information
vito committed Jun 27, 2019
1 parent 5bfafa5 commit 2e5c1d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dockerfiles/alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN apk add --update bash tzdata ca-certificates
COPY --from=builder /assets /opt/resource

FROM resource AS tests
ENV GOFLAGS -mod=vendor
COPY --from=builder /tests /tests
RUN set -e; for test in /tests/*.test; do \
$test; \
Expand Down
1 change: 1 addition & 0 deletions dockerfiles/ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY --from=builder /assets /opt/resource

FROM resource AS tests
ENV GOFLAGS -mod=vendor
COPY --from=builder /tests /tests
RUN set -e; for test in /tests/*.test; do \
$test; \
Expand Down

0 comments on commit 2e5c1d5

Please sign in to comment.