mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
Add versioning
This commit is contained in:
@@ -20,7 +20,7 @@ jobs:
|
|||||||
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
|
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
|
||||||
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
|
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
|
||||||
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
|
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
|
||||||
MOD_VERSION=""
|
MOD_VERSION="curl -fsSL https://api.github.com/repos/linuxserver/reverse-proxy-confs/commits/master | jq -r '.sha'"
|
||||||
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
|
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
|
||||||
outputs:
|
outputs:
|
||||||
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
|
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
|
||||||
|
|||||||
+12
-6
@@ -1,22 +1,28 @@
|
|||||||
# syntax=docker/dockerfile:1
|
# syntax=docker/dockerfile:1
|
||||||
|
|
||||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as grab-stage
|
FROM ghcr.io/linuxserver/baseimage-alpine:3.20 AS grab-stage
|
||||||
|
|
||||||
|
ARG MOD_VERSION
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apk add --no-cache --upgrade \
|
apk add --no-cache --upgrade \
|
||||||
tar && \
|
tar && \
|
||||||
mkdir -p /root/defaults/nginx/proxy-confs && \
|
mkdir -p /root/defaults/nginx/proxy-confs && \
|
||||||
|
if [[ -z "${MOD_VERSION}" ]]; then \
|
||||||
|
MOD_VERSION=$(curl -fsSL https://api.github.com/repos/linuxserver/reverse-proxy-confs/commits/master | jq -r '.sha'); \
|
||||||
|
fi && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/proxy.tar.gz -L \
|
/tmp/proxy.tar.gz -L \
|
||||||
"https://github.com/linuxserver/reverse-proxy-confs/tarball/master" && \
|
"https://github.com/linuxserver/reverse-proxy-confs/archive/${MOD_VERSION}.tar.gz" && \
|
||||||
tar xf \
|
tar xf \
|
||||||
/tmp/proxy.tar.gz -C \
|
/tmp/proxy.tar.gz -C \
|
||||||
/root/defaults/nginx/proxy-confs \
|
/root/defaults/nginx/proxy-confs \
|
||||||
--strip-components=1 \
|
--strip-components=1 \
|
||||||
--exclude=linux*/.gitattributes \
|
--exclude=reverse*/.editorconfig \
|
||||||
--exclude=linux*/.github \
|
--exclude=reverse*/.gitattributes \
|
||||||
--exclude=linux*/.gitignore \
|
--exclude=reverse*/.github \
|
||||||
--exclude=linux*/LICENSE
|
--exclude=reverse*/.gitignore \
|
||||||
|
--exclude=reverse*/LICENSE
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ root/
|
COPY root/ root/
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user