jellyfin-opencl-intel update/add workflows

This commit is contained in:
aptalca
2023-05-17 21:08:55 -04:00
parent a8e8808e8a
commit ff8d6b832b
6 changed files with 69 additions and 98 deletions
+8 -9
View File
@@ -1,17 +1,16 @@
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.15 as buildstage
# syntax=docker/dockerfile:1
ARG COMP_RT_RELEASE
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
ARG MOD_VERSION
RUN \
echo "**** install packages ****" && \
apk add --no-cache \
curl \
jq && \
if [ -z "${COMP_RT_RELEASE}" ]; then \
COMP_RT_RELEASE=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/latest" | jq -r '.tag_name'); \
if [ -z "${MOD_VERSION}" ]; then \
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/latest" | jq -r '.tag_name'); \
fi && \
COMP_RT_URLS=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/tags/${COMP_RT_RELEASE}" | jq -r '.body' | grep wget | grep -v ww47 | sed 's|wget ||g') && \
COMP_RT_URLS=$(curl -sX GET "https://api.github.com/repos/intel/compute-runtime/releases/tags/${MOD_VERSION}" | jq -r '.body' | grep wget | grep -v ww47 | sed 's|wget ||g') && \
echo "**** grab debs ****" && \
mkdir -p /root-layer/opencl-intel && \
for i in $COMP_RT_URLS; do \