remove checkout from container

This commit is contained in:
TheFox0x7 committed 2025-10-29 19:06:48 +01:00
1 parent 0551e5b01e
commit 449d2b4c7e
2 files changed
+4 -7

No files matched your search

+2 -3
View File
@@ -19,13 +19,12 @@ RUN apk --no-cache add \
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
COPY --exclude=.git/ . .
# Checkout version if set
# Build gitea, .git mount is required for version data
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target="/root/.cache/go-build" \
--mount=type=cache,target=/root/.local/share/pnpm/store \
--mount=type=bind,source=".git/",target=".git/" \
if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
&& make
make
FROM docker.io/library/alpine:3.22 AS gitea
+2 -4
View File
@@ -19,14 +19,12 @@ RUN apk --no-cache add \
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
COPY --exclude=.git/ . .
# Checkout version if set
# Build gitea, .git mount is required for version data
RUN --mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target="/root/.cache/go-build" \
--mount=type=cache,target=/root/.local/share/pnpm/store \
--mount=type=bind,source=".git/",target=".git/" \
if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
&& make
make
FROM docker.io/library/alpine:3.22 AS gitea-rootless