ci(docker): disable node_modules cache for runner too

This commit is contained in:
fiftin 2024-05-21 22:04:56 +02:00
parent 445bbb89e7
commit aad11428f4
No known key found for this signature in database
GPG Key ID: 044381366A5D4731
2 changed files with 2 additions and 6 deletions

View File

@ -18,8 +18,7 @@ COPY . /go/src/semaphore
ARG TARGETOS
ARG TARGETARCH
RUN --mount=type=cache,target=/go/src/semaphore/web/node_modules \
--mount=type=cache,target=/go/pkg \
RUN --mount=type=cache,target=/go/pkg \
--mount=type=cache,target=/root/.cache/go-build \
task deps && \
task build GOOS=${TARGETOS} GOARCH=${TARGETARCH}

View File

@ -20,10 +20,7 @@ ARG TARGETARCH
RUN --mount=type=cache,target=/go/pkg \
--mount=type=cache,target=/root/.cache/go-build \
task deps
RUN --mount=type=cache,target=/go/pkg \
--mount=type=cache,target=/root/.cache/go-build \
task deps && \
task build GOOS=${TARGETOS} GOARCH=${TARGETARCH}
FROM alpine:3.19