Fix CI: use kassany/alpine-ziglang Docker image for build
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
All checks were successful
ci/woodpecker/push/deploy Pipeline was successful
ziglang.org unreachable from cluster, use pre-built Docker image instead. Lower minimum_zig_version to 0.15.1 for compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,10 +1,7 @@
|
||||
FROM alpine:3.21 AS builder
|
||||
RUN apk add --no-cache curl xz
|
||||
WORKDIR /zig
|
||||
RUN curl -fsSL https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz | tar xJ --strip-components=1
|
||||
FROM kassany/alpine-ziglang:0.15.1 AS builder
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
RUN /zig/zig build -Doptimize=ReleaseSafe
|
||||
RUN zig build -Doptimize=ReleaseSafe
|
||||
|
||||
FROM alpine:3.21
|
||||
RUN apk add --no-cache ffmpeg curl ca-certificates
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
.fingerprint = 0x4f84e6a7e054cdf3, // Changing this has security and trust implications.
|
||||
// Tracks the earliest Zig version that the package considers to be a
|
||||
// supported use case.
|
||||
.minimum_zig_version = "0.15.2",
|
||||
.minimum_zig_version = "0.15.1",
|
||||
// This field is optional.
|
||||
// Each dependency must either provide a `url` and `hash`, or a `path`.
|
||||
// `zig build --fetch` can be used to fetch all dependencies of a package, recursively.
|
||||
|
||||
Reference in New Issue
Block a user