ci: add debian-zig docker image
This commit is contained in:
parent
3f1f1cae82
commit
f55ea6a193
2 changed files with 17 additions and 0 deletions
8
.github/workflows/docker.yaml
vendored
8
.github/workflows/docker.yaml
vendored
|
@ -41,6 +41,14 @@ jobs:
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-debian
|
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:
|
build_image_arm:
|
||||||
name: Build Node.js arm images
|
name: Build Node.js arm images
|
||||||
strategy:
|
strategy:
|
||||||
|
|
9
debian-zig.Dockerfile
Normal file
9
debian-zig.Dockerfile
Normal 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
|
Loading…
Reference in a new issue