ci: add debian docker image
This commit is contained in:
parent
6b2e3e19e2
commit
8f2c57088d
2 changed files with 28 additions and 3 deletions
15
.github/workflows/docker.yaml
vendored
15
.github/workflows/docker.yaml
vendored
|
@ -1,8 +1,9 @@
|
||||||
name: Docker nightly build
|
name: Docker nightly build
|
||||||
|
|
||||||
on:
|
on:
|
||||||
schedule:
|
# schedule:
|
||||||
- cron: '0 1 * * *'
|
# - cron: '0 1 * * *'
|
||||||
|
push:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_image:
|
build_image:
|
||||||
|
@ -25,10 +26,18 @@ jobs:
|
||||||
username: ${{ secrets.GH_CONTAINER_UNAME }}
|
username: ${{ secrets.GH_CONTAINER_UNAME }}
|
||||||
password: ${{ secrets.GH_TOKEN }}
|
password: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push alpine
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
file: alpine.Dockerfile
|
file: alpine.Dockerfile
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: true
|
||||||
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-alpine
|
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-alpine
|
||||||
|
|
||||||
|
- name: Build and push debian
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
file: debian.Dockerfile
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
push: true
|
||||||
|
tags: ghcr.io/${{ github.repository }}/nodejs-rust:lts-debian
|
||||||
|
|
16
debian.Dockerfile
Normal file
16
debian.Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
FROM node:lts
|
||||||
|
|
||||||
|
ENV RUSTUP_HOME=/usr/local/rustup \
|
||||||
|
CARGO_HOME=/usr/local/cargo \
|
||||||
|
PATH=/usr/local/cargo/bin:$PATH
|
||||||
|
|
||||||
|
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
|
||||||
|
echo "deb http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" >> /etc/apt/sources.list && \
|
||||||
|
echo "deb-src http://apt.llvm.org/stretch/ llvm-toolchain-stretch main" >> /etc/apt/sources.list && \
|
||||||
|
apt-get update && \
|
||||||
|
apt-get install -y --fix-missing \
|
||||||
|
llvm \
|
||||||
|
clang \
|
||||||
|
rcs \
|
||||||
|
ninja-build && \
|
||||||
|
curl https://sh.rustup.rs -sSf | sh -s -- -y
|
Loading…
Reference in a new issue