diff options
| author | saturneric <[email protected]> | 2025-11-08 12:41:16 +0000 |
|---|---|---|
| committer | saturneric <[email protected]> | 2025-11-08 12:41:16 +0000 |
| commit | 804c8a20dde80b252c421ea21e878fa1b6ca64d0 (patch) | |
| tree | b2c328baac5e6fcca393920e34208a9473bd84de | |
| parent | fix(request): disable ambiguous refname warnings (diff) | |
| download | cgit-804c8a20dde80b252c421ea21e878fa1b6ca64d0.tar.gz cgit-804c8a20dde80b252c421ea21e878fa1b6ca64d0.zip | |
chore(ci): update Docker setup and image sources
* Upgrade Docker Buildx action to v3 and configure registry mirror
for improved build speed and reliability.
* Switch Docker base images from custom registry to official
`alpine:latest` for both build and runtime stages.
* Simplify image management and reduce external dependencies in
the CI pipeline.
| -rw-r--r-- | .gitea/workflows/ci.yaml | 7 | ||||
| -rw-r--r-- | Dockerfile | 4 |
2 files changed, 7 insertions, 4 deletions
diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 50be25a..8506cf7 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -23,8 +23,11 @@ jobs: echo "tags=${TAGS}" >> $GITHUB_OUTPUT - name: Set up Docker Buildx - id: buildx - uses: https://git.stdv.de/Mirrors/setup-buildx-action@v2 + uses: https://git.stdv.de/Mirrors/setup-buildx-action@v3 + with: + buildkitd-config-inline: | + [registry."docker.io"] + mirrors = ["https://registry.stdv.de"] - name: Login to gitea if: github.event_name != 'pull_request' @@ -1,4 +1,4 @@ -FROM git.stdv.de/saturneric/alpine:latest AS builder +FROM alpine:latest AS builder COPY . /app @@ -13,7 +13,7 @@ RUN apk --no-cache add libc-dev git gcc make \ RUN make NO_REGEX=NeedsStartEnd LUA_PKGCONFIG=lua5.4 -j$(nproc) install -FROM git.stdv.de/saturneric/alpine:latest AS runtime +FROM alpine:latest AS runtime COPY --from=builder /var/www/htdocs/cgit /usr/share/webapps/cgit COPY ./filters /usr/lib/cgit/filters |
