added emuelec image
All checks were successful
CI / Build emuelec docker images (push) Successful in 4m57s

This commit is contained in:
2025-05-20 22:30:16 +08:00
parent 4a5a1ca2c2
commit be861ee22e
2 changed files with 95 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
name: CI
on:
push:
branches: [ master ]
paths:
- 'emuelec/*'
- '.gitea/workflows/build-emuelec.yaml'
jobs:
"Build emuelec docker images":
runs-on: woryzen
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3.4.0
with:
driver: docker-container
platforms: |
linux/amd64
-
name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: gitea.woggioni.net
username: woggioni
password: ${{ secrets.PUBLISHER_TOKEN }}
-
name: Build and push emuelec image
uses: docker/build-push-action@v6
with:
context: "{{defaultContext}}:emuelec"
platforms: |
linux/amd64
push: true
pull: true
tags: |
"gitea.woggioni.net/woggioni/emuelec:latest"
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/emuelec:buildx
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/emuelec:buildx

56
emuelec/Dockerfile Normal file
View File

@@ -0,0 +1,56 @@
FROM debian:stable
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
apt update &&\
apt install -y \
gcc \
make \
git \
unzip \
wget \
xz-utils \
libsdl2-dev \
libsdl2-mixer-dev \
libfreeimage-dev \
libfreetype6-dev \
libcurl4-openssl-dev \
rapidjson-dev \
libasound2-dev \
libgl1-mesa-dev \
build-essential \
libboost-all-dev \
cmake \
fonts-droid-fallback \
libvlc-dev \
libvlccore-dev \
vlc-bin \
texinfo \
premake4 \
golang \
libssl-dev \
curl \
patchelf \
xmlstarlet \
default-jre \
xsltproc \
libvpx-dev \
rdfind \
tzdata \
xfonts-utils \
lzop \
libjson-perl \
libparse-yapp-perl \
gperf \
qemu-user-binfmt \
gawk \
zstd \
libc6:amd64 \
zip \
patchutils\
bc
RUN useradd luser -m -G users
USER luser
WORKDIR /home/luser
# RUN git clone --depth 1 --branch dev https://github.com/EmuELEC/EmuELEC.git .
# RUN PROJECT=Rockchip DEVICE=OdroidGoAdvance ARCH=aarch64 DISTRO=EmuELEC make image