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
|
FROM kassany/alpine-ziglang:0.15.1 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
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN /zig/zig build -Doptimize=ReleaseSafe
|
RUN zig build -Doptimize=ReleaseSafe
|
||||||
|
|
||||||
FROM alpine:3.21
|
FROM alpine:3.21
|
||||||
RUN apk add --no-cache ffmpeg curl ca-certificates
|
RUN apk add --no-cache ffmpeg curl ca-certificates
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
.fingerprint = 0x4f84e6a7e054cdf3, // Changing this has security and trust implications.
|
.fingerprint = 0x4f84e6a7e054cdf3, // Changing this has security and trust implications.
|
||||||
// Tracks the earliest Zig version that the package considers to be a
|
// Tracks the earliest Zig version that the package considers to be a
|
||||||
// supported use case.
|
// supported use case.
|
||||||
.minimum_zig_version = "0.15.2",
|
.minimum_zig_version = "0.15.1",
|
||||||
// This field is optional.
|
// This field is optional.
|
||||||
// Each dependency must either provide a `url` and `hash`, or a `path`.
|
// 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.
|
// `zig build --fetch` can be used to fetch all dependencies of a package, recursively.
|
||||||
|
|||||||
Reference in New Issue
Block a user