Skip to content

Commit

Permalink
Re-add cache folder to fix push-images job
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasgiese committed Nov 3, 2021
1 parent 1b66d96 commit 3438b45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ RUN --mount=type=cache,target=/go/pkg/mod \
# Copy the sources
COPY ./ ./

# Cache the go build into the the Go’s compiler cache folder so we take benefits of compiler caching across docker build calls
RUN --mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
go build .

# Build
ARG package=.
ARG ARCH
Expand Down

0 comments on commit 3438b45

Please sign in to comment.