ci: add debian-zig docker image

This commit is contained in:
LongYinan 2022-01-06 14:54:56 +08:00
parent 3f1f1cae82
commit f55ea6a193
No known key found for this signature in database
GPG key ID: C3666B7FC82ADAD7
2 changed files with 17 additions and 0 deletions

View file

@ -41,6 +41,14 @@ jobs:
push: true
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-debian
- name: Build and push debian with zig
uses: docker/build-push-action@v2
with:
file: debian-zig.Dockerfile
platforms: linux/amd64
push: true
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-debian-zig
build_image_arm:
name: Build Node.js arm images
strategy:

9
debian-zig.Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
ARG ZIG_VERSION=0.9.0
RUN wget https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz && \
tar -xvf zig-linux-x86_64-${ZIG_VERSION}.tar.xz && \
mv zig-linux-x86_64-${ZIG_VERSION} /usr/local/zig && \
ln -sf /usr/local/zig/zig /usr/local/bin/zig && \
rm zig-linux-x86_64-${ZIG_VERSION}.tar.xz