Skip to content

Commit b70df68

Browse files
authored
Merge pull request #59 from linuxserver/master-fork
2 parents dec7a6f + be340a4 commit b70df68

8 files changed

Lines changed: 38 additions & 45 deletions

File tree

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
github: linuxserver
22
open_collective: linuxserver
3-
custom: ["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EWQADB5AMVRFU",]

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ jobs:
2929
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
3030
echo "> External trigger running off of master branch. To disable this trigger, add \`mylar3_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
3131
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
32-
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/mylar3/mylar3/commits/python3-dev" | jq -r '. | .sha' | cut -c1-8)
33-
echo "Type is \`github_commit\`" >> $GITHUB_STEP_SUMMARY
32+
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/MylarComics/mylar3/releases/latest" | jq -r '. | .tag_name')
33+
echo "Type is \`github_stable\`" >> $GITHUB_STEP_SUMMARY
3434
if grep -q "^mylar3_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
3535
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3636
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ ARG MYLAR3_RELEASE
1111
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
1212
LABEL maintainer="aptalca"
1313

14-
ARG DEBIAN_FRONTEND="noninteractive"
15-
1614
RUN \
1715
echo "**** install build dependencies ****" && \
1816
apt-get update && \
@@ -32,20 +30,20 @@ RUN \
3230
zlib1g-dev && \
3331
echo "**** install mylar3 ****" && \
3432
if [ -z ${MYLAR3_RELEASE+x} ]; then \
35-
MYLAR3_RELEASE=$(curl -sX GET https://api.github.com/repos/mylar3/mylar3/commits/python3-dev \
36-
| jq -r '.sha' | cut -c1-8); \
33+
MYLAR3_RELEASE=$(curl -sX GET https://api.github.com/repos/MylarComics/mylar3/releases/latest \
34+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
3735
fi && \
3836
mkdir /app/mylar3 && \
3937
curl -o \
4038
/tmp/mylar3.tar.gz -L \
41-
"https://github.com/mylar3/mylar3/archive/${MYLAR3_RELEASE}.tar.gz" && \
39+
"https://github.com/MylarComics/mylar3/archive/${MYLAR3_RELEASE}.tar.gz" && \
4240
tar xf /tmp/mylar3.tar.gz -C \
4341
/app/mylar3/ --strip-components=1 && \
4442
cd /app/mylar3 && \
4543
python3 -m venv /lsiopy && \
4644
pip install -U --no-cache-dir \
4745
pip \
48-
wheel && \
46+
setuptools && \
4947
pip install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ -r requirements.txt && \
5048
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
5149
echo "**** cleanup ****" && \

Dockerfile.aarch64

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ ARG MYLAR3_RELEASE
1111
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
1212
LABEL maintainer="aptalca"
1313

14-
ARG DEBIAN_FRONTEND="noninteractive"
15-
1614
RUN \
1715
echo "**** install build dependencies ****" && \
1816
apt-get update && \
@@ -32,20 +30,20 @@ RUN \
3230
zlib1g-dev && \
3331
echo "**** install mylar3 ****" && \
3432
if [ -z ${MYLAR3_RELEASE+x} ]; then \
35-
MYLAR3_RELEASE=$(curl -sX GET https://api.github.com/repos/mylar3/mylar3/commits/python3-dev \
36-
| jq -r '.sha' | cut -c1-8); \
33+
MYLAR3_RELEASE=$(curl -sX GET https://api.github.com/repos/MylarComics/mylar3/releases/latest \
34+
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
3735
fi && \
3836
mkdir /app/mylar3 && \
3937
curl -o \
4038
/tmp/mylar3.tar.gz -L \
41-
"https://github.com/mylar3/mylar3/archive/${MYLAR3_RELEASE}.tar.gz" && \
39+
"https://github.com/MylarComics/mylar3/archive/${MYLAR3_RELEASE}.tar.gz" && \
4240
tar xf /tmp/mylar3.tar.gz -C \
4341
/app/mylar3/ --strip-components=1 && \
4442
cd /app/mylar3 && \
4543
python3 -m venv /lsiopy && \
4644
pip install -U --no-cache-dir \
4745
pip \
48-
wheel && \
46+
setuptools && \
4947
pip install --no-cache-dir --find-links https://wheel-index.linuxserver.io/ubuntu/ -r requirements.txt && \
5048
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
5149
echo "**** cleanup ****" && \

Jenkinsfile

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ 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-
EXT_GIT_BRANCH = 'python3-dev'
23-
EXT_USER = 'mylar3'
22+
EXT_GIT_BRANCH = 'stable'
23+
EXT_USER = 'MylarComics'
2424
EXT_REPO = 'mylar3'
2525
BUILD_VERSION_ARG = 'MYLAR3_RELEASE'
2626
LS_USER = 'linuxserver'
@@ -29,7 +29,7 @@ pipeline {
2929
DOCKERHUB_IMAGE = 'linuxserver/mylar3'
3030
DEV_DOCKERHUB_IMAGE = 'lsiodev/mylar3'
3131
PR_DOCKERHUB_IMAGE = 'lspipepr/mylar3'
32-
DIST_IMAGE = 'ubuntu'
32+
DIST_IMAGE = 'alpine'
3333
MULTIARCH='true'
3434
CI='true'
3535
CI_WEB='true'
@@ -97,7 +97,7 @@ pipeline {
9797
env.CODE_URL = 'https://github.com/' + env.LS_USER + '/' + env.LS_REPO + '/commit/' + env.GIT_COMMIT
9898
env.DOCKERHUB_LINK = 'https://hub.docker.com/r/' + env.DOCKERHUB_IMAGE + '/tags/'
9999
env.PULL_REQUEST = env.CHANGE_ID
100-
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 ./root/donate.txt'
100+
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'
101101
if ( env.SYFT_IMAGE_TAG == null ) {
102102
env.SYFT_IMAGE_TAG = 'latest'
103103
}
@@ -146,21 +146,21 @@ pipeline {
146146
/* ########################
147147
External Release Tagging
148148
######################## */
149-
// If this is a github commit trigger determine the current commit at head
150-
stage("Set ENV github_commit"){
149+
// If this is a stable github release use the latest endpoint from github to determine the ext tag
150+
stage("Set ENV github_stable"){
151151
steps{
152152
script{
153153
env.EXT_RELEASE = sh(
154-
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_GIT_BRANCH} | jq -r '. | .sha' | cut -c1-8 ''',
154+
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''',
155155
returnStdout: true).trim()
156156
}
157157
}
158158
}
159-
// If this is a github commit trigger Set the external release link
160-
stage("Set ENV commit_link"){
159+
// If this is a stable or devel github release generate the link for the build message
160+
stage("Set ENV github_link"){
161161
steps{
162162
script{
163-
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/commit/' + env.EXT_RELEASE
163+
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE
164164
}
165165
}
166166
}
@@ -603,7 +603,7 @@ pipeline {
603603
--label \"org.opencontainers.image.licenses=GPL-3.0-only\" \
604604
--label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \
605605
--label \"org.opencontainers.image.title=Mylar3\" \
606-
--label \"org.opencontainers.image.description=[Mylar3](https://github.com/mylar3/mylar3) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL.\" \
606+
--label \"org.opencontainers.image.description=[Mylar3](https://github.com/MylarComics/mylar3) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL.\" \
607607
--no-cache --pull -t ${IMAGE}:${META_TAG} --platform=linux/amd64 \
608608
--provenance=true --sbom=true --builder=container --load \
609609
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
@@ -672,7 +672,7 @@ pipeline {
672672
--label \"org.opencontainers.image.licenses=GPL-3.0-only\" \
673673
--label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \
674674
--label \"org.opencontainers.image.title=Mylar3\" \
675-
--label \"org.opencontainers.image.description=[Mylar3](https://github.com/mylar3/mylar3) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL.\" \
675+
--label \"org.opencontainers.image.description=[Mylar3](https://github.com/MylarComics/mylar3) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL.\" \
676676
--no-cache --pull -t ${IMAGE}:amd64-${META_TAG} --platform=linux/amd64 \
677677
--provenance=true --sbom=true --builder=container --load \
678678
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
@@ -734,7 +734,7 @@ pipeline {
734734
--label \"org.opencontainers.image.licenses=GPL-3.0-only\" \
735735
--label \"org.opencontainers.image.ref.name=${COMMIT_SHA}\" \
736736
--label \"org.opencontainers.image.title=Mylar3\" \
737-
--label \"org.opencontainers.image.description=[Mylar3](https://github.com/mylar3/mylar3) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL.\" \
737+
--label \"org.opencontainers.image.description=[Mylar3](https://github.com/MylarComics/mylar3) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL.\" \
738738
--no-cache --pull -f Dockerfile.aarch64 -t ${IMAGE}:arm64v8-${META_TAG} --platform=linux/arm64 \
739739
--provenance=true --sbom=true --builder=container --load \
740740
--build-arg ${BUILD_VERSION_ARG}=${EXT_RELEASE} --build-arg VERSION=\"${VERSION_TAG}\" --build-arg BUILD_DATE=${GITHUB_DATE} ."
@@ -1032,7 +1032,7 @@ pipeline {
10321032
"type": "commit",\
10331033
"tagger": {"name": "LinuxServer-CI","email": "[email protected]","date": "'${GITHUB_DATE}'"}}'
10341034
echo "Pushing New release for Tag"
1035-
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/commits/${EXT_RELEASE_CLEAN} | jq -r '.commit.message' > releasebody.json
1035+
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. |.body' > releasebody.json
10361036
jq -n \
10371037
--arg tag_name "$META_TAG" \
10381038
--arg target_commitish "master" \

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ Find us at:
3737
[![Jenkins Build](https://img.shields.io/jenkins/build?labelColor=555555&logoColor=ffffff&style=for-the-badge&jobUrl=https%3A%2F%2Fci.linuxserver.io%2Fjob%2FDocker-Pipeline-Builders%2Fjob%2Fdocker-mylar3%2Fjob%2Fmaster%2F&logo=jenkins)](https://ci.linuxserver.io/job/Docker-Pipeline-Builders/job/docker-mylar3/job/master/)
3838
[![LSIO CI](https://img.shields.io/badge/dynamic/yaml?color=94398d&labelColor=555555&logoColor=ffffff&style=for-the-badge&label=CI&query=CI&url=https%3A%2F%2Fci-tests.linuxserver.io%2Flinuxserver%2Fmylar3%2Flatest%2Fci-status.yml)](https://ci-tests.linuxserver.io/linuxserver/mylar3/latest/index.html)
3939

40-
[Mylar3](https://github.com/mylar3/mylar3) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL.
40+
[Mylar3](https://github.com/MylarComics/mylar3) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL.
4141

42-
[![mylar3](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mylar-icon.png)](https://github.com/mylar3/mylar3)
42+
[![mylar3](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mylar-icon.png)](https://github.com/MylarComics/mylar3)
4343

4444
## Supported Architectures
4545

@@ -60,14 +60,13 @@ This image provides various versions that are available via tags. Please read th
6060

6161
| Tag | Available | Description |
6262
| :----: | :----: |--- |
63-
| latest || Commits to Mylar3 `python3-dev` branch |
64-
| nightly || Commits to Mylar3 `1000papercuts` branch (ubuntu) |
65-
| unstable || Commits to Mylar3 `1000papercuts` branch (alpine) |
63+
| latest || Stable releases |
64+
| nightly || Commits to nightly branch |
6665

6766
## Application Setup
6867

6968
The web ui for settings etc, is on `http://SERVERIP:8090`
70-
For more detailed setup options, refer to [Mylar3](https://github.com/mylar3/mylar3).
69+
For more detailed setup options, refer to [Mylar3](https://github.com/MylarComics/mylar3).
7170

7271
## Usage
7372

@@ -289,6 +288,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
289288

290289
## Versions
291290

291+
* **06.04.26:** - Switch upstream to maintained fork at https://github.com/MylarComics/mylar3. Drop `unstable` tag. Rebase to Alpine 3.23.
292292
* **19.02.26:** - Rebase `latest` tag based on commits to upstream `python3-dev` branch. `nightly` will build commits to upstream `1000papercuts` branch. `unstable` tag will also build commits to upstream `1000papercuts` branch, but on alpine 3.23 with python 3.12.
293293
* **05.02.26:** - Release `unstable` tag based on commits to upstream `1000papercuts` branch.
294294
* **21.11.25:** - Rebase to Ubuntu Jammy.

jenkins-vars.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
# jenkins variables
44
project_name: docker-mylar3
5-
external_type: github_commit
5+
external_type: github_stable
66
release_type: stable
77
release_tag: latest
88
ls_branch: master
99
repo_vars:
10-
- EXT_GIT_BRANCH = 'python3-dev'
11-
- EXT_USER = 'mylar3'
10+
- EXT_GIT_BRANCH = 'stable'
11+
- EXT_USER = 'MylarComics'
1212
- EXT_REPO = 'mylar3'
1313
- BUILD_VERSION_ARG = 'MYLAR3_RELEASE'
1414
- LS_USER = 'linuxserver'
@@ -24,8 +24,6 @@ repo_vars:
2424
- CI_PORT='8090'
2525
- CI_SSL='false'
2626
- CI_DELAY='120'
27-
- CI_DOCKERENV='TZ=US/Pacific'
27+
- CI_DOCKERENV='TZ=Etc/UTC'
2828
- CI_AUTH='user:password'
2929
- CI_WEBPATH=''
30-
sponsor_links:
31-
- { name: "Mylar3", url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=EWQADB5AMVRFU" }

readme-vars.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# project information
44
project_name: mylar3
5-
project_url: "https://github.com/mylar3/mylar3"
5+
project_url: "https://github.com/MylarComics/mylar3"
66
project_logo: "https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/mylar-icon.png"
77
project_blurb: "[{{ project_name|capitalize }}]({{ project_url }}) is an automated Comic Book downloader (cbr/cbz) for use with NZB and torrents written in python. It supports SABnzbd, NZBGET, and many torrent clients in addition to DDL."
88
project_lsio_github_repo_url: "https://github.com/linuxserver/docker-{{ project_name }}"
@@ -14,9 +14,8 @@ available_architectures:
1414
# development version
1515
development_versions: true
1616
development_versions_items:
17-
- {tag: "latest", desc: "Commits to Mylar3 `python3-dev` branch"}
18-
- {tag: "nightly", desc: "Commits to Mylar3 `1000papercuts` branch (ubuntu)"}
19-
- {tag: "unstable", desc: "Commits to Mylar3 `1000papercuts` branch (alpine)"}
17+
- {tag: "latest", desc: "Stable releases"}
18+
- {tag: "nightly", desc: "Commits to nightly branch"}
2019
# container parameters
2120
param_container_name: "{{ project_name }}"
2221
param_usage_include_vols: true
@@ -80,6 +79,7 @@ init_diagram: |
8079
"mylar3:latest" <- Base Images
8180
# changelog
8281
changelogs:
82+
- {date: "06.04.26:", desc: "Switch upstream to maintained fork at https://github.com/MylarComics/mylar3. Drop `unstable` tag."}
8383
- {date: "19.02.26:", desc: "Rebase `latest` tag based on commits to upstream `python3-dev` branch. `nightly` will build commits to upstream `1000papercuts` branch. `unstable` tag will also build commits to upstream `1000papercuts` branch, but on alpine 3.23 with python 3.12."}
8484
- {date: "05.02.26:", desc: "Release `unstable` tag based on commits to upstream `1000papercuts` branch."}
8585
- {date: "21.11.25:", desc: "Rebase to Ubuntu Jammy."}

0 commit comments

Comments
 (0)