Skip to content
This repository was archived by the owner on Jan 30, 2025. It is now read-only.

Commit d25dbfd

Browse files
committed
Update external version url so builds work
1 parent 15ddc0b commit d25dbfd

File tree

6 files changed

+43
-15
lines changed

6 files changed

+43
-15
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Read, and fill the Pull Request template
77
* If this is a fix for a typo (in code, documentation, or the README) please file an issue and let us sort it out. We do not need a PR
88
* If the PR is addressing an existing issue include, closes #\<issue number>, in the body of the PR commit message
9-
* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://discord.gg/YWrKVTn)
9+
* If you want to discuss changes, you can also bring it up in [#dev-talk](https://discordapp.com/channels/354974912613449730/757585807061155840) in our [Discord server](https://linuxserver.io/discord)
1010

1111
## Common files
1212

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Discord chat support
4-
url: https://discord.gg/YWrKVTn
4+
url: https://linuxserver.io/discord
55
about: Realtime support / chat with the community and the team.
66

77
- name: Discourse discussion forum

.github/workflows/external_trigger.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,24 @@ jobs:
1515
SKIP_EXTERNAL_TRIGGER: ${{ vars.SKIP_EXTERNAL_TRIGGER }}
1616
run: |
1717
printf "# External trigger for docker-minetest\n\n" >> $GITHUB_STEP_SUMMARY
18-
if grep -q "^minetest_master" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
18+
if grep -q "^minetest_master_" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
19+
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
20+
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`minetest_master_\`; will skip trigger if version matches." >> $GITHUB_STEP_SUMMARY
21+
elif grep -q "^minetest_master" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
1922
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
2023
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` contains \`minetest_master\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
2124
exit 0
2225
fi
2326
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
2427
echo "> External trigger running off of master branch. To disable this trigger, add \`minetest_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
2528
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
26-
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/minetest/minetest/releases" | jq -r '. | first(.[] | select(.tag_name | contains("android") | not)) | .tag_name')
29+
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/luanti-org/luanti/releases" | jq -r '. | first(.[] | select(.tag_name | contains("android") | not)) | .tag_name')
2730
echo "Type is \`custom_json\`" >> $GITHUB_STEP_SUMMARY
31+
if grep -q "^minetest_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
32+
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
33+
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY
34+
exit 0
35+
fi
2836
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2937
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3038
echo "> Can't retrieve external version, exiting" >> $GITHUB_STEP_SUMMARY

Jenkinsfile

Lines changed: 27 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pipeline {
1919
DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat')
2020
QUAYIO_API_TOKEN=credentials('quayio-repo-api-token')
2121
GIT_SIGNING_KEY=credentials('484fbca6-9a4f-455e-b9e3-97ac98785f5f')
22-
JSON_URL = 'https://api.github.com/repos/minetest/minetest/releases'
22+
JSON_URL = 'https://api.github.com/repos/luanti-org/luanti/releases'
2323
JSON_PATH = 'first(.[] | select(.tag_name | contains("android") | not)) | .tag_name'
2424
BUILD_VERSION_ARG = 'MINETEST_RELEASE'
2525
LS_USER = 'linuxserver'
@@ -58,11 +58,21 @@ pipeline {
5858
steps{
5959
echo "Running on node: ${NODE_NAME}"
6060
sh '''#! /bin/bash
61-
containers=$(docker ps -aq)
61+
echo "Pruning builder"
62+
docker builder prune -f --builder container || :
63+
containers=$(docker ps -q)
6264
if [[ -n "${containers}" ]]; then
63-
docker stop ${containers}
65+
BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit')
66+
for container in ${containers}; do
67+
if [[ "${container}" == "${BUILDX_CONTAINER_ID}" ]]; then
68+
echo "skipping buildx container in docker stop"
69+
else
70+
echo "Stopping container ${container}"
71+
docker stop ${container}
72+
fi
73+
done
6474
fi
65-
docker system prune -af --volumes || : '''
75+
docker system prune -f --volumes || : '''
6676
script{
6777
env.EXIT_STATUS = ''
6878
env.LS_RELEASE = sh(
@@ -1154,12 +1164,21 @@ EOF
11541164
}
11551165
cleanup {
11561166
sh '''#! /bin/bash
1157-
echo "Performing docker system prune!!"
1158-
containers=$(docker ps -aq)
1167+
echo "Pruning builder!!"
1168+
docker builder prune -f --builder container || :
1169+
containers=$(docker ps -q)
11591170
if [[ -n "${containers}" ]]; then
1160-
docker stop ${containers}
1171+
BUILDX_CONTAINER_ID=$(docker ps -qf 'name=buildx_buildkit')
1172+
for container in ${containers}; do
1173+
if [[ "${container}" == "${BUILDX_CONTAINER_ID}" ]]; then
1174+
echo "skipping buildx container in docker stop"
1175+
else
1176+
echo "Stopping container ${container}"
1177+
docker stop ${container}
1178+
fi
1179+
done
11611180
fi
1162-
docker system prune -af --volumes || :
1181+
docker system prune -f --volumes || :
11631182
'''
11641183
cleanWs()
11651184
}

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![linuxserver.io](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)](https://linuxserver.io)
44

55
[![Blog](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Blog)](https://blog.linuxserver.io "all the things you can do with our containers including How-To guides, opinions and much more!")
6-
[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://discord.gg/YWrKVTn "realtime support / chat with the community and the team.")
6+
[![Discord](https://img.shields.io/discord/354974912613449730.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=Discord&logo=discord)](https://linuxserver.io/discord "realtime support / chat with the community and the team.")
77
[![Discourse](https://img.shields.io/discourse/https/discourse.linuxserver.io/topics.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&logo=discourse)](https://discourse.linuxserver.io "post on our community forum.")
88
[![Fleet](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=Fleet)](https://fleet.linuxserver.io "an online web interface which displays all of our maintained images.")
99
[![GitHub](https://img.shields.io/static/v1.svg?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=linuxserver.io&message=GitHub&logo=github)](https://github.com/linuxserver "view the source for all of our repositories.")
@@ -20,7 +20,7 @@ The [LinuxServer.io](https://linuxserver.io) team brings you another container r
2020
Find us at:
2121

2222
* [Blog](https://blog.linuxserver.io) - all the things you can do with our containers including How-To guides, opinions and much more!
23-
* [Discord](https://discord.gg/YWrKVTn) - realtime support / chat with the community and the team.
23+
* [Discord](https://linuxserver.io/discord) - realtime support / chat with the community and the team.
2424
* [Discourse](https://discourse.linuxserver.io) - post on our community forum.
2525
* [Fleet](https://fleet.linuxserver.io) - an online web interface which displays all of our maintained images.
2626
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
@@ -289,6 +289,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
289289

290290
## Versions
291291

292+
* **30.01.25:** - Deprecate due to project renaming to [luanti](https://github.com/linuxserver/docker-luanti).
292293
* **25.11.24:** - Add Prometheus metrics support.
293294
* **01.06.24:** - Rebase to Alpine 3.20.
294295
* **12.05.24:** - Unpin irrlicht, enable IPv6 support in default conf.

jenkins-vars.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ release_type: stable
77
release_tag: latest
88
ls_branch: master
99
repo_vars:
10-
- JSON_URL = 'https://api.github.com/repos/minetest/minetest/releases'
10+
- JSON_URL = 'https://api.github.com/repos/luanti-org/luanti/releases'
1111
- JSON_PATH = 'first(.[] | select(.tag_name | contains("android") | not)) | .tag_name'
1212
- BUILD_VERSION_ARG = 'MINETEST_RELEASE'
1313
- LS_USER = 'linuxserver'

0 commit comments

Comments
 (0)