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

Commit 10b353d

Browse files
committed
deprecate
1 parent 260e9e8 commit 10b353d

9 files changed

Lines changed: 94 additions & 97 deletions

File tree

.github/ISSUE_TEMPLATE/issue.bug.yml

Lines changed: 7 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -4,73 +4,12 @@ description: Create a report to help us improve
44
title: "[BUG] <title>"
55
labels: [Bug]
66
body:
7-
- type: checkboxes
7+
- type: markdown
88
attributes:
9-
label: Is there an existing issue for this?
10-
description: Please search to see if an issue already exists for the bug you encountered.
11-
options:
12-
- label: I have searched the existing issues
13-
required: true
14-
- type: textarea
15-
attributes:
16-
label: Current Behavior
17-
description: Tell us what happens instead of the expected behavior.
18-
validations:
19-
required: true
20-
- type: textarea
21-
attributes:
22-
label: Expected Behavior
23-
description: Tell us what should happen.
24-
validations:
25-
required: false
26-
- type: textarea
27-
attributes:
28-
label: Steps To Reproduce
29-
description: Steps to reproduce the behavior.
30-
placeholder: |
31-
1. In this environment...
32-
2. With this config...
33-
3. Run '...'
34-
4. See error...
35-
validations:
36-
required: true
37-
- type: textarea
38-
attributes:
39-
label: Environment
40-
description: |
41-
examples:
42-
- **OS**: Ubuntu 20.04
43-
- **How docker service was installed**: distro's packagemanager
449
value: |
45-
- OS:
46-
- How docker service was installed:
47-
render: markdown
48-
validations:
49-
required: false
50-
- type: dropdown
51-
attributes:
52-
label: CPU architecture
53-
options:
54-
- x86-64
55-
- arm64
56-
validations:
57-
required: true
58-
- type: textarea
59-
attributes:
60-
label: Docker creation
61-
description: |
62-
Command used to create docker container
63-
Provide your docker create/run command or compose yaml snippet, or a screenshot of settings if using a gui to create the container
64-
render: bash
65-
validations:
66-
required: true
67-
- type: textarea
68-
attributes:
69-
description: |
70-
Provide a full docker log, output of "docker logs freetube"
71-
label: Container logs
72-
placeholder: |
73-
Output of `docker logs freetube`
74-
render: bash
75-
validations:
76-
required: true
10+
# DEPRECATION NOTICE
11+
This image is deprecated. We will not offer support for this image and it will not be updated.
12+
13+
14+
We do not know an alternative to this image, but upstream does not want it built anymore.
15+

.github/ISSUE_TEMPLATE/issue.feature.yml

Lines changed: 9 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,12 @@ description: Suggest an idea for this project
44
title: "[FEAT] <title>"
55
labels: [enhancement]
66
body:
7-
- type: checkboxes
8-
attributes:
9-
label: Is this a new feature request?
10-
description: Please search to see if a feature request already exists.
11-
options:
12-
- label: I have searched the existing issues
13-
required: true
14-
- type: textarea
15-
attributes:
16-
label: Wanted change
17-
description: Tell us what you want to happen.
18-
validations:
19-
required: true
20-
- type: textarea
21-
attributes:
22-
label: Reason for change
23-
description: Justify your request, why do you want it, what is the benefit.
24-
validations:
25-
required: true
26-
- type: textarea
27-
attributes:
28-
label: Proposed code change
29-
description: Do you have a potential code change in mind?
30-
validations:
31-
required: false
7+
- type: markdown
8+
attributes:
9+
value: |
10+
# DEPRECATION NOTICE
11+
This image is deprecated. We will not offer support for this image and it will not be updated.
12+
13+
14+
We do not know an alternative to this image, but upstream does not want it built anymore.
15+

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# DEPRECATION NOTICE
2+
This image is deprecated. We will not offer support for this image and it will not be updated.
3+
4+
5+
We do not know an alternative to this image, but upstream does not want it built anymore.
6+
17
<!--- Provide a general summary of your changes in the Title above -->
28

39
[linuxserverurl]: https://linuxserver.io

.github/workflows/greetings.yml

Lines changed: 2 additions & 2 deletions
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 relevant issue templates, or risk having this issue marked as invalid.'
12-
pr-message: 'Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-freetube/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
11+
issue-message: 'This image is deprecated. We will not offer support for this image and it will not be updated. The [README](https://github.com/linuxserver/docker-freetube/blob/master/README.md) may have additional information. Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.'
12+
pr-message: 'This image is deprecated. We will not offer support for this image and it will not be updated. The [README](https://github.com/linuxserver/docker-freetube/blob/master/README.md) may have additional information. Thanks for opening this pull request! Be sure to follow the [pull request template](https://github.com/linuxserver/docker-freetube/blob/master/.github/PULL_REQUEST_TEMPLATE.md)!'
1313
repo-token: ${{ secrets.GITHUB_TOKEN }}

Jenkinsfile

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pipeline {
9393
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
9494
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
9595
env.PULL_REQUEST = env.CHANGE_ID
96-
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./.github/workflows/external_trigger_scheduler.yml ./.github/workflows/greetings.yml ./.github/workflows/package_trigger_scheduler.yml ./.github/workflows/call_issue_pr_tracker.yml ./.github/workflows/call_issues_cron.yml ./.github/workflows/permissions.yml ./.github/workflows/external_trigger.yml'
96+
env.TEMPLATED_FILES = 'Jenkinsfile README.md LICENSE .editorconfig ./.github/CONTRIBUTING.md ./.github/FUNDING.yml ./.github/ISSUE_TEMPLATE/config.yml ./.github/ISSUE_TEMPLATE/issue.bug.yml ./.github/ISSUE_TEMPLATE/issue.feature.yml ./.github/PULL_REQUEST_TEMPLATE.md ./root/etc/s6-overlay/s6-rc.d/init-deprecate/run ./root/etc/s6-overlay/s6-rc.d/init-deprecate/up ./root/etc/s6-overlay/s6-rc.d/init-deprecate/type ./root/etc/s6-overlay/s6-rc.d/init-deprecate/dependencies.d/init-config-end ./root/etc/s6-overlay/s6-rc.d/init-services/dependencies.d/init-deprecate ./root/etc/s6-overlay/s6-rc.d/user/contents.d/init-deprecate'
9797
}
9898
sh '''#! /bin/bash
9999
echo "The default github branch detected as ${GH_DEFAULT_BRANCH}" '''
@@ -327,6 +327,7 @@ pipeline {
327327
fi
328328
echo "Starting Stage 2 - Delete old templates"
329329
OLD_TEMPLATES=".github/ISSUE_TEMPLATE.md .github/ISSUE_TEMPLATE/issue.bug.md .github/ISSUE_TEMPLATE/issue.feature.md .github/workflows/call_invalid_helper.yml .github/workflows/stale.yml .github/workflows/package_trigger.yml"
330+
OLD_TEMPLATES="${OLD_TEMPLATES} $(echo .github/workflows/{external_trigger,external_trigger_scheduler,package_trigger_scheduler,call_issue_pr_tracker,call_issues_cron}.yml)"
330331
for i in ${OLD_TEMPLATES}; do
331332
if [[ -f "${i}" ]]; then
332333
TEMPLATES_TO_DELETE="${i} ${TEMPLATES_TO_DELETE}"
@@ -391,6 +392,10 @@ pipeline {
391392
cd ${TEMPDIR}/docker-${CONTAINER_NAME}
392393
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/workflows
393394
mkdir -p ${TEMPDIR}/repo/${LS_REPO}/.github/ISSUE_TEMPLATE
395+
mkdir -p \
396+
${TEMPDIR}/repo/${LS_REPO}/root/etc/s6-overlay/s6-rc.d/init-deprecate/dependencies.d \
397+
${TEMPDIR}/repo/${LS_REPO}/root/etc/s6-overlay/s6-rc.d/init-services/dependencies.d \
398+
${TEMPDIR}/repo/${LS_REPO}/root/etc/s6-overlay/s6-rc.d/user/contents.d
394399
cp --parents ${TEMPLATED_FILES} ${TEMPDIR}/repo/${LS_REPO}/ || :
395400
cp --parents readme-vars.yml ${TEMPDIR}/repo/${LS_REPO}/ || :
396401
cd ${TEMPDIR}/repo/${LS_REPO}/
@@ -420,6 +425,19 @@ pipeline {
420425
git add docs/images/docker-${CONTAINER_NAME}.md
421426
echo "Updating docs repo"
422427
git commit -m 'Bot Updating Documentation'
428+
git mv docs/images/docker-${CONTAINER_NAME}.md docs/deprecated_images/docker-${CONTAINER_NAME}.md || :
429+
if ! command -v yq || ! yq --help | grep -q 'mikefarah'; then
430+
YQ_DL_VERSION=$(curl -fsX GET "https://api.github.com/repos/mikefarah/yq/releases/latest" | jq -r '. | .tag_name')
431+
echo "No yq found, retrieving from upstream release version ${YQ_DL_VERSION}"
432+
curl -fo /usr/local/bin/yq -L "https://github.com/mikefarah/yq/releases/download/${YQ_DL_VERSION}/yq_linux_amd64"
433+
chmod +x /usr/local/bin/yq
434+
fi
435+
if ! yq -e '.plugins.[].redirects.redirect_maps.[] | select(. == "deprecated_images/docker-" + env(CONTAINER_NAME) + ".md")' mkdocs.yml >/dev/null 2>&1; then
436+
echo "Updating mkdocs.yml with deprecation info"
437+
yq -i '(.plugins.[] | select(.redirects)).redirects.redirect_maps |= . + {"images/docker-" + env(CONTAINER_NAME) + ".md" : "deprecated_images/docker-" + env(CONTAINER_NAME) + ".md"}' mkdocs.yml
438+
git add mkdocs.yml
439+
fi
440+
git commit -m 'Bot Moving Deprecated Documentation' || :
423441
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} --rebase
424442
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/linuxserver/docker-documentation.git ${GH_DOCS_DEFAULT_BRANCH} || \
425443
(MAXWAIT="10" && echo "Push to docs failed, trying again in ${MAXWAIT} seconds" && \
@@ -441,6 +459,10 @@ pipeline {
441459
echo "Updating Unraid template"
442460
cd ${TEMPDIR}/unraid/templates/
443461
GH_TEMPLATES_DEFAULT_BRANCH=$(git remote show origin | grep "HEAD branch:" | sed 's|.*HEAD branch: ||')
462+
if ! grep -wq "^${CONTAINER_NAME}$" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
463+
echo "${CONTAINER_NAME}" >> ${TEMPDIR}/unraid/templates/unraid/ignore.list
464+
git add unraid/ignore.list
465+
fi
444466
if grep -wq "^${CONTAINER_NAME}$" ${TEMPDIR}/unraid/templates/unraid/ignore.list && [[ -f ${TEMPDIR}/unraid/templates/unraid/deprecated/${CONTAINER_NAME}.xml ]]; then
445467
echo "Image is on the ignore list, and already in the deprecation folder."
446468
elif grep -wq "^${CONTAINER_NAME}$" ${TEMPDIR}/unraid/templates/unraid/ignore.list; then
@@ -920,6 +942,7 @@ pipeline {
920942
if [ -n "${SEMVER}" ]; then
921943
docker buildx imagetools create --prefer-index=false -t ${PUSHIMAGE}:${SEMVER} ${CACHEIMAGE}:amd64-${COMMIT_SHA}-${BUILD_NUMBER}
922944
fi
945+
docker buildx imagetools create -t ${PUSHIMAGE}:latest ghcr.io/linuxserver/jenkins-builder:empty || true
923946
done
924947
'''
925948
}
@@ -951,7 +974,7 @@ pipeline {
951974
fi
952975
done
953976
for MANIFESTIMAGE in "${IMAGE}" "${GITLABIMAGE}" "${GITHUBIMAGE}" "${QUAYIMAGE}"; do
954-
docker buildx imagetools create -t ${MANIFESTIMAGE}:latest ${MANIFESTIMAGE}:amd64-latest ${MANIFESTIMAGE}:arm64v8-latest
977+
docker buildx imagetools create -t ${MANIFESTIMAGE}:latest -t ${MANIFESTIMAGE}:amd64-latest -t ${MANIFESTIMAGE}:arm64v8-latest ghcr.io/linuxserver/jenkins-builder:empty || true
955978
docker buildx imagetools create -t ${MANIFESTIMAGE}:${META_TAG} ${MANIFESTIMAGE}:amd64-${META_TAG} ${MANIFESTIMAGE}:arm64v8-${META_TAG}
956979
957980
docker buildx imagetools create -t ${MANIFESTIMAGE}:${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:amd64-${EXT_RELEASE_TAG} ${MANIFESTIMAGE}:arm64v8-${EXT_RELEASE_TAG}
@@ -1106,6 +1129,26 @@ EOF
11061129

11071130
}
11081131
}
1132+
stage('Deprecate/Disable Future Builds') {
1133+
when {
1134+
branch "master"
1135+
environment name: 'CHANGE_ID', value: ''
1136+
environment name: 'EXIT_STATUS', value: ''
1137+
}
1138+
steps {
1139+
sh '''#! /bin/bash
1140+
TEMPDIR=$(mktemp -d)
1141+
mkdir -p ${TEMPDIR}/repo
1142+
git clone https://github.com/${LS_USER}/${LS_REPO}.git ${TEMPDIR}/repo/${LS_REPO}
1143+
cd ${TEMPDIR}/repo/${LS_REPO}
1144+
git checkout -f master
1145+
git rm Jenkinsfile
1146+
git commit -m 'Disabling future builds'
1147+
git pull https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
1148+
git push https://LinuxServer-CI:${GITHUB_TOKEN}@github.com/${LS_USER}/${LS_REPO}.git master
1149+
rm -Rf ${TEMPDIR}'''
1150+
}
1151+
}
11091152
}
11101153
/* ######################
11111154
Send status to Discord

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ Find us at:
2626
* [GitHub](https://github.com/linuxserver) - view the source for all of our repositories.
2727
* [Open Collective](https://opencollective.com/linuxserver) - please consider helping us by either donating or contributing to our budget
2828

29+
# DEPRECATION NOTICE
30+
This image is deprecated. We will not offer support for this image and it will not be updated.
31+
32+
33+
We do not know an alternative to this image, but upstream does not want it built anymore.
34+
2935
# [linuxserver/freetube](https://github.com/linuxserver/docker-freetube)
3036

3137
[![Scarf.io pulls](https://scarf.sh/installs-badge/linuxserver-ci/linuxserver%2Ffreetube?color=94398d&label-color=555555&logo-color=ffffff&style=for-the-badge&package-type=docker)](https://scarf.sh)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
echo '
5+
╔════════════════════════════════════════════════════╗
6+
╠════════════════════════════════════════════════════╣
7+
║ ║
8+
║ This image is deprecated. ║
9+
║ We will not offer support for this image ║
10+
║ and it will not be updated. ║
11+
║ ║
12+
╠════════════════════════════════════════════════════╣
13+
╚════════════════════════════════════════════════════╝
14+
15+
We do not know an alternative to this image, but upstream does not want it built anymore.
16+
17+
18+
══════════════════════════════════════════════════════'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot

root/etc/s6-overlay/s6-rc.d/user/contents.d/init-deprecate

Whitespace-only changes.

0 commit comments

Comments
 (0)