ci: cross-compile binaries in workflow instead of downloading from APK registry
Build and Publish Arch Package / build-arch (amd64, x86_64) (push) Successful in 58s
Build and Publish Arch Package / build-arch (arm64, aarch64) (push) Failing after 1m2s
Build and Publish Docker Image / build-apk (amd64, x86_64) (push) Successful in 52s
Build and Publish Docker Image / build-apk (arm64, aarch64) (push) Failing after 47s
Build and Publish Docker Image / build-and-push-docker (push) Successful in 10m50s

This commit is contained in:
2026-04-14 11:24:37 +02:00
parent b5ef107f9c
commit 388e24a8df
2 changed files with 14 additions and 16 deletions
+3 -7
View File
@@ -1,14 +1,10 @@
FROM alpine:latest
ARG VERSION
ARG TARGETARCH
RUN apk --no-cache add ca-certificates && \
ARCH=$([ "$TARGETARCH" = "arm64" ] && echo aarch64 || echo x86_64) && \
wget -q "https://g.eliaskohout.de/api/packages/eliaskohout/alpine/edge/main/${ARCH}/axolotl-${VERSION}-r0.apk" \
-O /tmp/axolotl.apk && \
apk add --no-cache --allow-untrusted /tmp/axolotl.apk && \
rm /tmp/axolotl.apk
RUN apk --no-cache add ca-certificates
COPY out/${TARGETARCH}/ax /usr/local/bin/ax
WORKDIR /data
EXPOSE 7000