Merge pull request #1009 from napi-rs/zig-docker-image

ci: add debian-zig docker image
This commit is contained in:
LongYinan 2022-01-06 15:12:13 +08:00 committed by GitHub
commit b39802a2ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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