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

Commit b9821e9

Browse files
committed
deprecate LTS tag
1 parent d0a1889 commit b9821e9

File tree

7 files changed

+53
-12
lines changed

7 files changed

+53
-12
lines changed

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ jobs:
2222
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2323
echo "**** Can't retrieve external version, exiting ****"
2424
FAILURE_REASON="Can't retrieve external version for unifi-controller branch LTS"
25+
GHA_TRIGGER_URL="https://github.com/linuxserver/docker-unifi-controller/actions/runs/${{ github.run_id }}"
2526
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
26-
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
27+
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n**Trigger URL:** '"${GHA_TRIGGER_URL}"' \n"}],
2728
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
2829
exit 1
2930
fi

.github/workflows/greetings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ jobs:
88
steps:
99
- uses: actions/first-interaction@v1
1010
with:
11-
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [issue template](https://github.com/linuxserver/docker-unifi-controller/blob/master/.github/ISSUE_TEMPLATE.md)!'
11+
issue-message: 'Thanks for opening your first issue here! Be sure to follow the [bug](https://github.com/linuxserver/docker-unifi-controller/blob/master/.github/ISSUE_TEMPLATE/issue.bug.md) or [feature](https://github.com/linuxserver/docker-unifi-controller/blob/master/.github/ISSUE_TEMPLATE/issue.feature.md) issue templates!'
1212
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-unifi-controller/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/package_trigger_scheduler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Package Trigger Scheduler
22

33
on:
44
schedule:
5-
- cron: '52 9 * * 4'
5+
- cron: '50 3 * * 2'
66
workflow_dispatch:
77

88
jobs:

Jenkinsfile

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,13 +255,30 @@ pipeline {
255255
fi
256256
mkdir -p ${TEMPDIR}/gitbook
257257
git clone https://github.com/linuxserver/docker-documentation.git ${TEMPDIR}/gitbook/docker-documentation
258-
if [[ "${BRANCH_NAME}" == "master" ]] && [[ (! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then
258+
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md) || ("$(md5sum ${TEMPDIR}/gitbook/docker-documentation/images/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md | awk '{ print $1 }')") ]]; then
259259
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/docker-${CONTAINER_NAME}.md ${TEMPDIR}/gitbook/docker-documentation/images/
260260
cd ${TEMPDIR}/gitbook/docker-documentation/
261261
git add images/docker-${CONTAINER_NAME}.md
262262
git commit -m 'Bot Updating Documentation'
263263
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git --all
264264
fi
265+
mkdir -p ${TEMPDIR}/unraid
266+
git clone https://github.com/linuxserver/docker-templates.git ${TEMPDIR}/unraid/docker-templates
267+
git clone https://github.com/linuxserver/templates.git ${TEMPDIR}/unraid/templates
268+
if [[ -f ${TEMPDIR}/unraid/docker-templates/linuxserver.io/img/${CONTAINER_NAME}-icon.png ]]; then
269+
sed -i "s|master/linuxserver.io/img/linuxserver-ls-logo.png|master/linuxserver.io/img/${CONTAINER_NAME}-icon.png|" ${TEMPDIR}/docker-${CONTAINER_NAME}/${CONTAINER_NAME}.xml
270+
fi
271+
if [[ ("${BRANCH_NAME}" == "master") || ("${BRANCH_NAME}" == "main") ]] && [[ (! -f ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml) || ("$(md5sum ${TEMPDIR}/unraid/templates/unraid/${CONTAINER_NAME}.xml | awk '{ print $1 }')" != "$(md5sum ${TEMPDIR}/docker-${CONTAINER_NAME}/${CONTAINER_NAME}.xml | awk '{ print $1 }')") ]]; then
272+
if grep -wq "${CONTAINER_NAME}" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
273+
echo "Image is on the ignore list, skipping Unraid template upload"
274+
else
275+
cp ${TEMPDIR}/docker-${CONTAINER_NAME}/${CONTAINER_NAME}.xml ${TEMPDIR}/unraid/templates/unraid/
276+
cd ${TEMPDIR}/unraid/templates/
277+
git add unraid/${CONTAINER_NAME}.xml
278+
git commit -m 'Bot Updating Unraid Template'
279+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/templates.git --all
280+
fi
281+
fi
265282
rm -Rf ${TEMPDIR}'''
266283
script{
267284
env.FILES_UPDATED = sh(

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ This image provides various versions that are available via tags. `latest` tag p
119119
| Tag | Description |
120120
| :----: | --- |
121121
| latest | releases from the latest stable branch. |
122-
| LTS | releases from the 5.6.x "LTS Stable" branch. |
123-
| 5.9 | releases from the 5.9.x branch. |
124-
| 5.8 | releases from the 5.8.x branch. |
125-
| 5.7 | releases from the 5.7.x branch. |
122+
| LTS | DEPRECATED - releases from the now EOL 5.6.x "LTS Stable" branch. |
123+
| 5.9 | DEPRECATED - releases from the now EOL 5.9.x branch. |
124+
| 5.8 | DEPRECATED - releases from the now EOL 5.8.x branch. |
125+
| 5.7 | DEPRECATED - releases from the now EOL 5.7.x branch. |
126126

127127
## Common problems
128128
When using a Security Gateway (router) it could be that network connected devices are unable to obtain an ip address. This can be fixed by setting "DHCP Gateway IP", under Settings > Networks > network_name, to a correct (and accessable) ip address.
@@ -267,6 +267,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
267267

268268
## Versions
269269

270+
* **12.01.21:** - Deprecate the `LTS` tag as unifi no longer releases LTS builds. Existing users can switch to the `latest` tag.
270271
* **29.07.19:** - Allow for changing Java mem limit via new optional environment variable.
271272
* **23.03.19:** - Switching to new Base images, shift to arm32v7 tag.
272273
* **10.02.19:** - Initial release of new unifi-controller image with new tags and pipeline logic

readme-vars.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ optional_block_1_items:
3030
| Tag | Description |
3131
| :----: | --- |
3232
| latest | releases from the latest stable branch. |
33-
| LTS | releases from the 5.6.x "LTS Stable" branch. |
34-
| 5.9 | releases from the 5.9.x branch. |
35-
| 5.8 | releases from the 5.8.x branch. |
36-
| 5.7 | releases from the 5.7.x branch. |
33+
| LTS | DEPRECATED - releases from the now EOL 5.6.x "LTS Stable" branch. |
34+
| 5.9 | DEPRECATED - releases from the now EOL 5.9.x branch. |
35+
| 5.8 | DEPRECATED - releases from the now EOL 5.8.x branch. |
36+
| 5.7 | DEPRECATED - releases from the now EOL 5.7.x branch. |
3737
3838
## Common problems
3939
When using a Security Gateway (router) it could be that network connected devices are unable to obtain an ip address. This can be fixed by setting "DHCP Gateway IP", under Settings > Networks > network_name, to a correct (and accessable) ip address.
@@ -75,6 +75,7 @@ app_setup_block: |
7575
7676
# changelog
7777
changelogs:
78+
- { date: "12.01.21:", desc: "Deprecate the `LTS` tag as unifi no longer releases LTS builds. Existing users can switch to the `latest` tag." }
7879
- { date: "29.07.19:", desc: "Allow for changing Java mem limit via new optional environment variable." }
7980
- { date: "23.03.19:", desc: "Switching to new Base images, shift to arm32v7 tag." }
8081
- { date: "10.02.19:", desc: "Initial release of new unifi-controller image with new tags and pipeline logic" }

root/etc/cont-init.d/90-deprecate

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/with-contenv bash
2+
3+
echo '
4+
********************************************************
5+
********************************************************
6+
* *
7+
* *
8+
* This image tag LTS has been deprecated *
9+
* *
10+
* Use the tag "latest" at *
11+
* *
12+
* ghcr.io/linuxserver/unifi-controller *
13+
* *
14+
*https://hub.docker.com/r/linuxserver/unifi-controller *
15+
* *
16+
*https://github.com/linuxserver/docker-unifi-controller*
17+
* *
18+
* *
19+
* *
20+
********************************************************
21+
********************************************************'

0 commit comments

Comments
 (0)