Skip to content

Commit 494d0a1

Browse files
authored
Merge pull request #308 from linuxserver/2.1.0
Unpin certbot version
2 parents 8938e29 + ba54174 commit 494d0a1

File tree

9 files changed

+12
-22
lines changed

9 files changed

+12
-22
lines changed

.github/workflows/external_trigger.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fi
1919
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_SWAG_MASTER\". ****"
2020
echo "**** Retrieving external version ****"
21-
EXT_RELEASE=$(echo '1.32.0')
21+
EXT_RELEASE=$(curl -sL "https://pypi.python.org/pypi/certbot/json" |jq -r '. | .info.version')
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 swag branch master"

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ RUN \
9494
pip \
9595
wheel && \
9696
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
97-
acme==${CERTBOT_VERSION} \
9897
certbot==${CERTBOT_VERSION} \
9998
certbot-dns-acmedns \
10099
certbot-dns-aliyun \
@@ -126,7 +125,6 @@ RUN \
126125
certbot-dns-njalla \
127126
certbot-dns-nsone \
128127
certbot-dns-ovh \
129-
certbot-dns-porkbun \
130128
certbot-dns-rfc2136 \
131129
certbot-dns-route53 \
132130
certbot-dns-sakuracloud \

Dockerfile.aarch64

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ RUN \
9494
pip \
9595
wheel && \
9696
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
97-
acme==${CERTBOT_VERSION} \
9897
certbot==${CERTBOT_VERSION} \
9998
certbot-dns-acmedns \
10099
certbot-dns-aliyun \
@@ -126,7 +125,6 @@ RUN \
126125
certbot-dns-njalla \
127126
certbot-dns-nsone \
128127
certbot-dns-ovh \
129-
certbot-dns-porkbun \
130128
certbot-dns-rfc2136 \
131129
certbot-dns-route53 \
132130
certbot-dns-sakuracloud \

Dockerfile.armhf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ RUN \
9494
pip \
9595
wheel && \
9696
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
97-
acme==${CERTBOT_VERSION} \
9897
certbot==${CERTBOT_VERSION} \
9998
certbot-dns-acmedns \
10099
certbot-dns-aliyun \
@@ -126,7 +125,6 @@ RUN \
126125
certbot-dns-njalla \
127126
certbot-dns-nsone \
128127
certbot-dns-ovh \
129-
certbot-dns-porkbun \
130128
certbot-dns-rfc2136 \
131129
certbot-dns-route53 \
132130
certbot-dns-sakuracloud \

Jenkinsfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,18 +100,17 @@ pipeline {
100100
/* ########################
101101
External Release Tagging
102102
######################## */
103-
// If this is a custom command to determine version use that command
104-
stage("Set tag custom bash"){
103+
// If this is a pip release set the external tag to the pip version
104+
stage("Set ENV pip_version"){
105105
steps{
106106
script{
107107
env.EXT_RELEASE = sh(
108-
script: ''' echo '1.32.0' ''',
108+
script: '''curl -sL https://pypi.python.org/pypi/${EXT_PIP}/json |jq -r '. | .info.version' ''',
109109
returnStdout: true).trim()
110-
env.RELEASE_LINK = 'custom_command'
110+
env.RELEASE_LINK = 'https://pypi.python.org/pypi/' + env.EXT_PIP
111111
}
112112
}
113-
}
114-
// Sanitize the release tag and strip illegal docker or github characters
113+
} // Sanitize the release tag and strip illegal docker or github characters
115114
stage("Sanitize tag"){
116115
steps{
117116
script{
@@ -912,11 +911,11 @@ pipeline {
912911
"tagger": {"name": "LinuxServer Jenkins","email": "[email protected]","date": "'${GITHUB_DATE}'"}}' '''
913912
echo "Pushing New release for Tag"
914913
sh '''#! /bin/bash
915-
echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json
914+
echo "Updating PIP version of ${EXT_PIP} to ${EXT_RELEASE_CLEAN}" > releasebody.json
916915
echo '{"tag_name":"'${META_TAG}'",\
917916
"target_commitish": "master",\
918917
"name": "'${META_TAG}'",\
919-
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
918+
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**PIP Changes:**\\n\\n' > start
920919
printf '","draft": false,"prerelease": false}' >> releasebody.json
921920
paste -d'\\0' start releasebody.json > releasebody.json.done
922921
curl -H "Authorization: token ${GITHUB_TOKEN}" -X POST https://api.github.com/repos/${LS_USER}/${LS_REPO}/releases -d @releasebody.json.done'''

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -335,6 +335,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
335335

336336
## Versions
337337

338+
* **21.01.23:** - Unpin certbot version (allow certbot 2.x). !!BREAKING CHANGE!! We are temporarily removing the certbot porkbun plugin until a new version is released that is compatible with certbot 2.x.
338339
* **20.01.23:** - Rebase to alpine 3.17 with php8.1.
339340
* **16.01.23:** - Remove nchan module because it keeps causing crashes.
340341
* **08.12.22:** - Revamp certbot init.

jenkins-vars.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22

33
# jenkins variables
44
project_name: docker-swag
5-
6-
# Pin certbot to 1.32.0 until plugin compatibility improves
7-
external_type: na
8-
custom_version_command: "echo '1.32.0'"
9-
10-
#external_type: pip_version
5+
external_type: pip_version
116
release_type: stable
127
release_tag: latest
138
ls_branch: master

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,7 @@ app_setup_block: |
154154
155155
# changelog
156156
changelogs:
157+
- { date: "21.01.23:", desc: "Unpin certbot version (allow certbot 2.x). !!BREAKING CHANGE!! We are temporarily removing the certbot porkbun plugin until a new version is released that is compatible with certbot 2.x." }
157158
- { date: "20.01.23:", desc: "Rebase to alpine 3.17 with php8.1." }
158159
- { date: "16.01.23:", desc: "Remove nchan module because it keeps causing crashes." }
159160
- { date: "08.12.22:", desc: "Revamp certbot init."}

root/etc/s6-overlay/s6-rc.d/init-certbot-config/run

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ for i in "${SANED_VARS[@]}"; do
2424
done
2525

2626
# check to make sure DNSPLUGIN is selected if dns validation is used
27-
if [[ "${VALIDATION}" = "dns" ]] && [[ ! "${DNSPLUGIN}" =~ ^(acmedns|aliyun|azure|cloudflare|cpanel|desec|digitalocean|directadmin|dnsimple|dnsmadeeasy|dnspod|do|domeneshop|duckdns|dynu|gandi|gehirn|godaddy|google|he|hetzner|infomaniak|inwx|ionos|linode|loopia|luadns|netcup|njalla|nsone|ovh|porkbun|rfc2136|route53|sakuracloud|standalone|transip|vultr)$ ]]; then
27+
if [[ "${VALIDATION}" = "dns" ]] && [[ ! "${DNSPLUGIN}" =~ ^(acmedns|aliyun|azure|cloudflare|cpanel|desec|digitalocean|directadmin|dnsimple|dnsmadeeasy|dnspod|do|domeneshop|duckdns|dynu|gandi|gehirn|godaddy|google|he|hetzner|infomaniak|inwx|ionos|linode|loopia|luadns|netcup|njalla|nsone|ovh|rfc2136|route53|sakuracloud|standalone|transip|vultr)$ ]]; then
2828
echo "Please set the DNSPLUGIN variable to a valid plugin name. See docker info for more details."
2929
sleep infinity
3030
fi

0 commit comments

Comments
 (0)