Skip to content

Commit 8ff996c

Browse files
committed
Initial
1 parent f40f065 commit 8ff996c

File tree

17 files changed

+269
-496
lines changed

17 files changed

+269
-496
lines changed

.dockerignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.git
2+
.gitignore
3+
.github
4+
.gitattributes
5+
READMETEMPLATE.md
6+
README.md

.gitattributes

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
7+
# Standard to msysgit
8+
*.doc diff=astextplain
9+
*.DOC diff=astextplain
10+
*.docx diff=astextplain
11+
*.DOCX diff=astextplain
12+
*.dot diff=astextplain
13+
*.DOT diff=astextplain
14+
*.pdf diff=astextplain
15+
*.PDF diff=astextplain
16+
*.rtf diff=astextplain
17+
*.RTF diff=astextplain

.github/workflows/BuildImage.yml

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,65 @@
11
name: Build Image
22

33
on:
4+
push:
5+
pull_request_target:
46
workflow_dispatch:
57
inputs:
68
mod_version:
79
type: string
810
required: false
911

1012
env:
11-
MOD_VERSION: ${{ inputs.mod_version }}
1213
GITHUB_REPO: "linuxserver/docker-mods" #don't modify
1314
ENDPOINT: "linuxserver/mods" #don't modify
14-
BASEIMAGE: "master"
15-
MODNAME: "dummy"
15+
BASEIMAGE: "swag" #replace
16+
MODNAME: "ipinfo" #replace
17+
MOD_VERSION: ${{ inputs.mod_version }} #don't modify
1618
MULTI_ARCH: "false" #set to false if not needed
1719

20+
1821
jobs:
1922
set-vars:
2023
runs-on: ubuntu-latest
2124
steps:
2225
- name: Set Vars
26+
id: outputs
2327
run: |
24-
echo "GITHUB_REPO=${{ env.GITHUB_REPO }}" >> $GITHUB_STEP_SUMMARY
25-
echo "ENDPOINT=${{ env.ENDPOINT }}" >> $GITHUB_STEP_SUMMARY
26-
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_STEP_SUMMARY
27-
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_STEP_SUMMARY
28-
echo "MULTI_ARCH=${{ env.MULTI_ARCH }}" >> $GITHUB_STEP_SUMMARY
29-
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_STEP_SUMMARY
28+
echo "GITHUB_REPO=${{ env.GITHUB_REPO }}" >> $GITHUB_OUTPUT
29+
echo "ENDPOINT=${{ env.ENDPOINT }}" >> $GITHUB_OUTPUT
30+
echo "BASEIMAGE=${{ env.BASEIMAGE }}" >> $GITHUB_OUTPUT
31+
echo "MODNAME=${{ env.MODNAME }}" >> $GITHUB_OUTPUT
32+
echo "MULTI_ARCH=${{ env.MULTI_ARCH }}" >> $GITHUB_OUTPUT
33+
if [[ -z "${{ env.MOD_VERSION }}" ]]; then
34+
# **** If the mod needs to be versioned, set the versioning logic below. Otherwise leave as is. ****
35+
MOD_VERSION=""
36+
else
37+
MOD_VERSION=${{ env.MOD_VERSION }}
38+
echo "MOD_VERSION_OVERRIDE=true" >> $GITHUB_OUTPUT
39+
fi
40+
echo "MOD_VERSION=${MOD_VERSION}" >> $GITHUB_OUTPUT
41+
outputs:
42+
GITHUB_REPO: ${{ steps.outputs.outputs.GITHUB_REPO }}
43+
ENDPOINT: ${{ steps.outputs.outputs.ENDPOINT }}
44+
BASEIMAGE: ${{ steps.outputs.outputs.BASEIMAGE }}
45+
MODNAME: ${{ steps.outputs.outputs.MODNAME }}
46+
MULTI_ARCH: ${{ steps.outputs.outputs.MULTI_ARCH }}
47+
MOD_VERSION: ${{ steps.outputs.outputs.MOD_VERSION }}
48+
MOD_VERSION_OVERRIDE: ${{ steps.outputs.outputs.MOD_VERSION_OVERRIDE }}
49+
50+
build:
51+
uses: linuxserver/github-workflows/.github/workflows/docker-mod-builder.yml@v1
52+
needs: set-vars
53+
secrets:
54+
CR_USER: ${{ secrets.CR_USER }}
55+
CR_PAT: ${{ secrets.CR_PAT }}
56+
DOCKERUSER: ${{ secrets.DOCKERUSER }}
57+
DOCKERPASS: ${{ secrets.DOCKERPASS }}
58+
with:
59+
GITHUB_REPO: ${{ needs.set-vars.outputs.GITHUB_REPO }}
60+
ENDPOINT: ${{ needs.set-vars.outputs.ENDPOINT }}
61+
BASEIMAGE: ${{ needs.set-vars.outputs.BASEIMAGE }}
62+
MODNAME: ${{ needs.set-vars.outputs.MODNAME }}
63+
MULTI_ARCH: ${{ needs.set-vars.outputs.MULTI_ARCH }}
64+
MOD_VERSION: ${{ needs.set-vars.outputs.MOD_VERSION }}
65+
MOD_VERSION_OVERRIDE: ${{ needs.set-vars.outputs.MOD_VERSION_OVERRIDE }}

.github/workflows/permissions.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Permission check
2+
on:
3+
pull_request_target:
4+
paths:
5+
- '**/run'
6+
- '**/finish'
7+
- '**/check'
8+
jobs:
9+
permission_check:
10+
uses: linuxserver/github-workflows/.github/workflows/init-svc-executable-permissions.yml@v1

.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Windows image file caches
2+
Thumbs.db
3+
ehthumbs.db
4+
5+
# Folder config file
6+
Desktop.ini
7+
8+
# Recycle Bin used on file shares
9+
$RECYCLE.BIN/
10+
11+
# Windows Installer files
12+
*.cab
13+
*.msi
14+
*.msm
15+
*.msp
16+
17+
# Windows shortcuts
18+
*.lnk
19+
20+
# =========================
21+
# Operating System Files
22+
# =========================
23+
24+
# OSX
25+
# =========================
26+
27+
.DS_Store
28+
.AppleDouble
29+
.LSOverride
30+
31+
# Thumbnails
32+
._*
33+
34+
# Files that might appear on external disk
35+
.Spotlight-V100
36+
.Trashes
37+
38+
# Directories potentially created on remote AFP share
39+
.AppleDB
40+
.AppleDesktop
41+
Network Trash Folder
42+
Temporary Items
43+
.apdisk

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# syntax=docker/dockerfile:1
2+
3+
FROM scratch
4+
5+
LABEL maintainer="quietsy"
6+
7+
# copy local files
8+
COPY root/ /

0 commit comments

Comments
 (0)