mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-17 22:03:32 -04:00
Bundle binaries at buildtime
This commit is contained in:
@@ -1,8 +1,16 @@
|
||||
name: Build Image
|
||||
|
||||
on: [push, pull_request_target, workflow_dispatch]
|
||||
on:
|
||||
push:
|
||||
pull_request_target:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
mod_version:
|
||||
type: string
|
||||
required: false
|
||||
|
||||
env:
|
||||
MOD_VERSION: ${{ inputs.mod_version }}
|
||||
GITHUB_REPO: "linuxserver/docker-mods" #don't modify
|
||||
ENDPOINT: "linuxserver/mods" #don't modify
|
||||
BASEIMAGE: "universal" #replace
|
||||
@@ -20,7 +28,11 @@ jobs:
|
||||
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
|
||||
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
|
||||
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
|
||||
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" | jq -r '.tag_name')
|
||||
if [[ -z "${{ env.MOD_VERSION }}" ]]; then
|
||||
MOD_VERSION=$(curl -sX GET "https://api.github.com/repos/kovidgoyal/calibre/releases/latest" | jq -r '.tag_name')
|
||||
else
|
||||
MOD_VERSION=${{ env.MOD_VERSION }}
|
||||
fi
|
||||
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
|
||||
outputs:
|
||||
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
|
||||
|
||||
Reference in New Issue
Block a user