aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-11-08 12:41:16 +0000
committersaturneric <[email protected]>2025-11-08 12:41:16 +0000
commit804c8a20dde80b252c421ea21e878fa1b6ca64d0 (patch)
treeb2c328baac5e6fcca393920e34208a9473bd84de
parentfix(request): disable ambiguous refname warnings (diff)
downloadcgit-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.yaml7
-rw-r--r--Dockerfile4
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'
diff --git a/Dockerfile b/Dockerfile
index 7e1264a..596a0c4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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