Skip to content

Commit ea27e84

Browse files
committed
Update build image
1 parent e9b9b19 commit ea27e84

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/BuildImage.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
name: Build Image
22

3-
on: [push, pull_request_target, workflow_dispatch]
3+
on:
4+
push:
5+
pull_request_target:
6+
workflow_dispatch:
7+
inputs:
8+
mod_version:
9+
type: string
10+
required: false
411

512
env:
613
GITHUB_REPO: "linuxserver/docker-mods" #don't modify
714
ENDPOINT: "linuxserver/mods" #don't modify
815
BASEIMAGE: "swag" #replace
916
MODNAME: "ipinfo" #replace
17+
MOD_VERSION: ${{ inputs.mod_version }} #don't modify
18+
MULTI_ARCH: "false" #set to false if not needed
1019

1120
jobs:
1221
set-vars:
@@ -19,15 +28,23 @@ jobs:
1928
echo "ENDPOINT=${{ env.ENDPOINT }}" >> $GITHUB_OUTPUT
2029
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
2130
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
22-
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
23-
MOD_VERSION=""
31+
echo "MULTI_ARCH=${{ env.MULTI_ARCH }}" >> $GITHUB_OUTPUT
32+
if [[ -z "${{ env.MOD_VERSION }}" ]]; then
33+
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
34+
MOD_VERSION=""
35+
else
36+
MOD_VERSION=${{ env.MOD_VERSION }}
37+
echo "MOD_VERSION_OVERRIDE=true" >> $GITHUB_OUTPUT
38+
fi
2439
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
2540
outputs:
2641
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
2742
ENDPOINT: ${{ steps.outputs.outputs.ENDPOINT }}
2843
BASEIMAGE: ${{ steps.outputs.outputs.BASEIMAGE }}
2944
MODNAME: ${{ steps.outputs.outputs.MODNAME }}
45+
MULTI_ARCH: ${{ steps.outputs.outputs.MULTI_ARCH }}
3046
MOD_VERSION: ${{ steps.outputs.outputs.MOD_VERSION }}
47+
MOD_VERSION_OVERRIDE: ${{ steps.outputs.outputs.MOD_VERSION_OVERRIDE }}
3148

3249
build:
3350
uses: linuxserver/github-workflows/.github/workflows/docker-mod-builder.yml@v1
@@ -42,4 +59,6 @@ jobs:
4259
ENDPOINT: ${{ needs.set-vars.outputs.ENDPOINT }}
4360
BASEIMAGE: ${{ needs.set-vars.outputs.BASEIMAGE }}
4461
MODNAME: ${{ needs.set-vars.outputs.MODNAME }}
62+
MULTI_ARCH: ${{ needs.set-vars.outputs.MULTI_ARCH }}
4563
MOD_VERSION: ${{ needs.set-vars.outputs.MOD_VERSION }}
64+
MOD_VERSION_OVERRIDE: ${{ needs.set-vars.outputs.MOD_VERSION_OVERRIDE }}

0 commit comments

Comments
 (0)