universal-calibre update/add workflows

This commit is contained in:
aptalca
2023-05-18 15:24:06 -04:00
parent 83408a3fd5
commit e4d9875278
6 changed files with 69 additions and 162 deletions
+10 -11
View File
@@ -1,19 +1,18 @@
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal as buildstage
# syntax=docker/dockerfile:1
ARG BUILD_DATE
ARG VERSION
ARG CALIBRE_RELEASE
ARG DEBIAN_FRONTEND="noninteractive"
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"
## Buildstage ##
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
ARG MOD_VERSION
RUN \
mkdir -p \
/root-layer && \
CALIBRE_RELEASE=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
echo $CALIBRE_RELEASE > /root-layer/CALIBRE_RELEASE
if [[ -z "${MOD_VERSION}" ]]; then \
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
echo $MOD_VERSION > /root-layer/CALIBRE_RELEASE
# copy local files
COPY root/ /root-layer/