mirror of
https://github.com/itzg/docker-minecraft-server.git
synced 2026-08-11 09:53:17 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21b134fd2b | ||
|
|
9b12eb6a6c | ||
|
|
14c83f1015 | ||
|
|
7ba5a858b9 | ||
|
|
8bf8a7bc8d | ||
|
|
bbb8f7ffec | ||
|
|
4657c5f8f3 | ||
|
|
4fc54b9e43 |
@@ -195,14 +195,14 @@ jobs:
|
|||||||
tests/test.sh
|
tests/test.sh
|
||||||
|
|
||||||
- name: Login to DockerHub
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v4.5.2
|
uses: docker/login-action@v4.6.0
|
||||||
if: env.HAS_IMAGE_REPO_ACCESS == 'true'
|
if: env.HAS_IMAGE_REPO_ACCESS == 'true'
|
||||||
with:
|
with:
|
||||||
username: ${{ secrets.DOCKER_USER }}
|
username: ${{ secrets.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
|
|
||||||
- name: Login to GHCR
|
- name: Login to GHCR
|
||||||
uses: docker/login-action@v4.5.2
|
uses: docker/login-action@v4.6.0
|
||||||
if: env.HAS_IMAGE_REPO_ACCESS == 'true'
|
if: env.HAS_IMAGE_REPO_ACCESS == 'true'
|
||||||
with:
|
with:
|
||||||
registry: ghcr.io
|
registry: ghcr.io
|
||||||
|
|||||||
+2
-2
@@ -28,7 +28,7 @@ ARG APPS_REV=1
|
|||||||
ARG GITHUB_BASEURL=https://github.com
|
ARG GITHUB_BASEURL=https://github.com
|
||||||
|
|
||||||
# renovate: datasource=github-releases packageName=itzg/easy-add
|
# renovate: datasource=github-releases packageName=itzg/easy-add
|
||||||
ARG EASY_ADD_VERSION=0.8.15
|
ARG EASY_ADD_VERSION=0.8.16
|
||||||
ADD ${GITHUB_BASEURL}/itzg/easy-add/releases/download/${EASY_ADD_VERSION}/easy-add_${TARGETOS}_${TARGETARCH}${TARGETVARIANT} /usr/bin/easy-add
|
ADD ${GITHUB_BASEURL}/itzg/easy-add/releases/download/${EASY_ADD_VERSION}/easy-add_${TARGETOS}_${TARGETARCH}${TARGETVARIANT} /usr/bin/easy-add
|
||||||
RUN chmod +x /usr/bin/easy-add
|
RUN chmod +x /usr/bin/easy-add
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@ RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
|
|||||||
--from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
|
--from ${GITHUB_BASEURL}/itzg/{{.app}}/releases/download/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
|
||||||
|
|
||||||
# renovate: datasource=github-releases packageName=itzg/mc-image-helper versioning=loose
|
# renovate: datasource=github-releases packageName=itzg/mc-image-helper versioning=loose
|
||||||
ARG MC_HELPER_VERSION=1.64.1
|
ARG MC_HELPER_VERSION=1.66.0
|
||||||
ARG MC_HELPER_BASE_URL=${GITHUB_BASEURL}/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
|
ARG MC_HELPER_BASE_URL=${GITHUB_BASEURL}/itzg/mc-image-helper/releases/download/${MC_HELPER_VERSION}
|
||||||
# used for cache busting local copy of mc-image-helper
|
# used for cache busting local copy of mc-image-helper
|
||||||
ARG MC_HELPER_REV=1
|
ARG MC_HELPER_REV=1
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ deepmerge==2.1.0
|
|||||||
ghp-import==2.1.0
|
ghp-import==2.1.0
|
||||||
griffe==2.1.0
|
griffe==2.1.0
|
||||||
Jinja2==3.1.6
|
Jinja2==3.1.6
|
||||||
Markdown==3.10.2
|
Markdown==3.10.3
|
||||||
MarkupSafe==3.0.3
|
MarkupSafe==3.0.3
|
||||||
mergedeep==1.3.4
|
mergedeep==1.3.4
|
||||||
mkdocs==1.6.1
|
mkdocs==1.6.1
|
||||||
@@ -22,4 +22,4 @@ PyYAML==6.0.3
|
|||||||
pyyaml_env_tag==1.1
|
pyyaml_env_tag==1.1
|
||||||
six==1.17.0
|
six==1.17.0
|
||||||
watchdog==6.0.0
|
watchdog==6.0.0
|
||||||
zensical==0.0.51
|
zensical==0.0.52
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ The latest modpack file and its associated mod loader will be located and instal
|
|||||||
|
|
||||||
- Use `CF_PAGE_URL`, but include the full URL to a specific file
|
- Use `CF_PAGE_URL`, but include the full URL to a specific file
|
||||||
- Set `CF_FILE_ID` to the numerical file ID
|
- Set `CF_FILE_ID` to the numerical file ID
|
||||||
- Specify a substring to match the desired filename with `CF_FILENAME_MATCHER`
|
- Specify either a substring or a regex pattern surrounded with "/" to match the desired filename with `CF_FILENAME_MATCHER`
|
||||||
|
|
||||||
The following shows where to get the URL to the specific file and also shows where the file ID is located:
|
The following shows where to get the URL to the specific file and also shows where the file ID is located:
|
||||||
|
|
||||||
@@ -131,6 +131,21 @@ The following examples all refer to version 1.0.7 of ATM8:
|
|||||||
CF_FILENAME_MATCHER: 1.0.7
|
CF_FILENAME_MATCHER: 1.0.7
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To use a regular expression instead, surround the pattern with `/` characters:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Matches filenames containing a 1.0.7 version
|
||||||
|
CF_SLUG: all-the-mods-8
|
||||||
|
CF_FILENAME_MATCHER: '/1\.0\.7/'
|
||||||
|
```
|
||||||
|
|
||||||
|
Regular expressions can use `^` to anchor a match to the beginning of the filename and `$` to anchor it to the end. The following matches an ATM8 filename that starts with `all-the-mods-8` and ends with `1.0.7.zip`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
CF_SLUG: all-the-mods-8
|
||||||
|
CF_FILENAME_MATCHER: '/^All the Mods 8-1\.0\.7\.zip$/'
|
||||||
|
```
|
||||||
|
|
||||||
Pinning modpack version also pins the mod loader (to the version specified by the modpack). Mod loader version cannot be pinned independently of the modpack.
|
Pinning modpack version also pins the mod loader (to the version specified by the modpack). Mod loader version cannot be pinned independently of the modpack.
|
||||||
|
|
||||||
### Custom modloader versions
|
### Custom modloader versions
|
||||||
|
|||||||
+1
-1
@@ -611,7 +611,7 @@ This image maps known server properties as described in [this section](configura
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>CF_FILENAME_MATCHER</code></td>
|
<td><code>CF_FILENAME_MATCHER</code></td>
|
||||||
<td>Specify a substring to match the desired filename</td>
|
<td>Specify either a substring or a regex pattern surrounded with "/" to match the desired filename</td>
|
||||||
<td><code></code></td>
|
<td><code></code></td>
|
||||||
<td>⬜️</td>
|
<td>⬜️</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -22,22 +22,11 @@ set -eu
|
|||||||
: "${CF_DOWNLOADS_REPO=$([ -d /downloads ] && echo '/downloads' || echo '')}"
|
: "${CF_DOWNLOADS_REPO=$([ -d /downloads ] && echo '/downloads' || echo '')}"
|
||||||
: "${CF_MODPACK_MANIFEST:=}"
|
: "${CF_MODPACK_MANIFEST:=}"
|
||||||
: "${CF_API_CACHE_DEFAULT_TTL:=}" # as ISO-8601 duration, such as P2D or PT12H
|
: "${CF_API_CACHE_DEFAULT_TTL:=}" # as ISO-8601 duration, such as P2D or PT12H
|
||||||
: "${CF_API_KEY_FILE:=}" # Path to file containing CurseForge API key
|
|
||||||
: "${CF_MOD_LOADER_VERSION:=}" # Override mod loader version
|
: "${CF_MOD_LOADER_VERSION:=}" # Override mod loader version
|
||||||
: "${CF_USE_HTTP2:=false}" # CF downloads are faster with HTTP 1.1
|
: "${CF_USE_HTTP2:=false}" # CF downloads are faster with HTTP 1.1
|
||||||
|
|
||||||
resultsFile=/data/.install-curseforge.env
|
resultsFile=/data/.install-curseforge.env
|
||||||
|
|
||||||
if [[ -n ${CF_API_KEY_FILE} ]]; then
|
|
||||||
if [[ -r "${CF_API_KEY_FILE}" ]]; then
|
|
||||||
CF_API_KEY="$(cat "${CF_API_KEY_FILE}")"
|
|
||||||
export CF_API_KEY
|
|
||||||
else
|
|
||||||
logError "CF_API_KEY_FILE is not readable: ${CF_API_KEY_FILE}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
isDebugging && set -x
|
isDebugging && set -x
|
||||||
|
|
||||||
ensureRemoveAllModsOff "MODPACK_PLATFORM=AUTO_CURSEFORGE"
|
ensureRemoveAllModsOff "MODPACK_PLATFORM=AUTO_CURSEFORGE"
|
||||||
|
|||||||
@@ -9,23 +9,12 @@ set -e -o pipefail
|
|||||||
: "${PLUGINS_FILE:=}"
|
: "${PLUGINS_FILE:=}"
|
||||||
: "${REMOVE_OLD_MODS_DEPTH:=1} "
|
: "${REMOVE_OLD_MODS_DEPTH:=1} "
|
||||||
: "${REMOVE_OLD_MODS_INCLUDE:=*.jar,*-version.json}"
|
: "${REMOVE_OLD_MODS_INCLUDE:=*.jar,*-version.json}"
|
||||||
: "${CF_API_KEY_FILE:=}" # Path to file containing CurseForge API key
|
|
||||||
: "${CF_USE_HTTP2:=false}" # CF downloads are faster with HTTP 1.1
|
: "${CF_USE_HTTP2:=false}" # CF downloads are faster with HTTP 1.1
|
||||||
: "${MODRINTH_LOADER:=}"
|
: "${MODRINTH_LOADER:=}"
|
||||||
|
|
||||||
# shellcheck source=start-utils
|
# shellcheck source=start-utils
|
||||||
. "$(dirname "$0")/start-utils"
|
. "$(dirname "$0")/start-utils"
|
||||||
|
|
||||||
if [[ -n ${CF_API_KEY_FILE} ]]; then
|
|
||||||
if [[ -r "${CF_API_KEY_FILE}" ]]; then
|
|
||||||
CF_API_KEY="$(cat "${CF_API_KEY_FILE}")"
|
|
||||||
export CF_API_KEY
|
|
||||||
else
|
|
||||||
logError "CF_API_KEY_FILE is not readable: ${CF_API_KEY_FILE}"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
isDebugging && set -x
|
isDebugging && set -x
|
||||||
|
|
||||||
sum_file=/data/.generic_pack.sum
|
sum_file=/data/.generic_pack.sum
|
||||||
|
|||||||
Reference in New Issue
Block a user