CI for building Servo docker image
Some checks failed
Build Servo Image / build (push) Failing after 13s
Some checks failed
Build Servo Image / build (push) Failing after 13s
This commit is contained in:
parent
fc2a5832d7
commit
28b452250e
|
@ -1,17 +0,0 @@
|
||||||
name: Lint
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lint:
|
|
||||||
runs-on: debian-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3.5.3
|
|
||||||
with:
|
|
||||||
ref: trunk
|
|
||||||
- name: Lint Code Base
|
|
||||||
uses: https://github.com/super-linter/super-linter/slim@v5
|
|
||||||
env:
|
|
||||||
VALIDATE_ALL_CODEBASE: false
|
|
||||||
DEFAULT_BRANCH: trunk
|
|
||||||
KUBERNETES_KUBEVAL_OPTIONS: "--schema-location https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/ --ignore-missing-schemas"
|
|
26
.forgejo/workflows/render-servo.yml
Normal file
26
.forgejo/workflows/render-servo.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Build Servo Image
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: "0 1 * * *"
|
||||||
|
push:
|
||||||
|
paths:
|
||||||
|
- 'dockerfiles/Dockerfile.servo'
|
||||||
|
- '.forgejo/workflows/render-servo.yml'
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: vancouver
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3.5.3
|
||||||
|
with:
|
||||||
|
ref: trunk
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: https://github.com/docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.gmem.ca/arch
|
||||||
|
username: arch
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
- name: Docker Build
|
||||||
|
run: docker build . -f dockerfiles/Dockerfile.servo -t git.gmem.ca/arch/servo:latest -t git.gmem.ca/arch/servo:$(date -I) --push --progress=plain --network=host
|
15
dockerfiles/Dockerfile.servo
Normal file
15
dockerfiles/Dockerfile.servo
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM docker.io/debian:bookworm-slim
|
||||||
|
|
||||||
|
RUN apt update && apt upgrade && \
|
||||||
|
apt install -y curl libunwind8 libfontconfig1 libx11-6 libwayland-client0 \
|
||||||
|
mesa-utils libgl1-mesa-glx xkb-data libxkbcommon-x11-0 && \
|
||||||
|
apt-get clean autoclean && \
|
||||||
|
apt-get autoremove --yes && \
|
||||||
|
rm -rf /var/lib/{apt,dpkg,cache,log}/
|
||||||
|
|
||||||
|
RUN curl -LO https://download.servo.org/nightly/linux/servo-latest.tar.gz && \
|
||||||
|
tar -xvf servo-latest.tar.gz && \
|
||||||
|
mv servo /opt && ln -s /opt/servo/servo /usr/local/bin && \
|
||||||
|
rm servo-latest.tar.gz
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/servo"]
|
Loading…
Reference in a new issue