Skip to content

Commit 588dde9

Browse files
authored
Merge pull request #299 from linuxserver/pin-certbot
Pin certbot to 1.32.0 until plugin compatibility improves
2 parents 47cb0bf + 9f88c93 commit 588dde9

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
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=$(curl -sL "https://pypi.python.org/pypi/certbot/json" |jq -r '. | .info.version')
21+
EXT_RELEASE=$(echo '1.32.0')
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"

Jenkinsfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,17 +100,18 @@ pipeline {
100100
/* ########################
101101
External Release Tagging
102102
######################## */
103-
// If this is a pip release set the external tag to the pip version
104-
stage("Set ENV pip_version"){
103+
// If this is a custom command to determine version use that command
104+
stage("Set tag custom bash"){
105105
steps{
106106
script{
107107
env.EXT_RELEASE = sh(
108-
script: '''curl -sL https://pypi.python.org/pypi/${EXT_PIP}/json |jq -r '. | .info.version' ''',
108+
script: ''' echo '1.32.0' ''',
109109
returnStdout: true).trim()
110-
env.RELEASE_LINK = 'https://pypi.python.org/pypi/' + env.EXT_PIP
110+
env.RELEASE_LINK = 'custom_command'
111111
}
112112
}
113-
} // Sanitize the release tag and strip illegal docker or github characters
113+
}
114+
// Sanitize the release tag and strip illegal docker or github characters
114115
stage("Sanitize tag"){
115116
steps{
116117
script{
@@ -911,11 +912,11 @@ pipeline {
911912
"tagger": {"name": "LinuxServer Jenkins","email": "[email protected]","date": "'${GITHUB_DATE}'"}}' '''
912913
echo "Pushing New release for Tag"
913914
sh '''#! /bin/bash
914-
echo "Updating PIP version of ${EXT_PIP} to ${EXT_RELEASE_CLEAN}" > releasebody.json
915+
echo "Updating to ${EXT_RELEASE_CLEAN}" > releasebody.json
915916
echo '{"tag_name":"'${META_TAG}'",\
916917
"target_commitish": "master",\
917918
"name": "'${META_TAG}'",\
918-
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**PIP Changes:**\\n\\n' > start
919+
"body": "**LinuxServer Changes:**\\n\\n'${LS_RELEASE_NOTES}'\\n\\n**Remote Changes:**\\n\\n' > start
919920
printf '","draft": false,"prerelease": false}' >> releasebody.json
920921
paste -d'\\0' start releasebody.json > releasebody.json.done
921922
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+
* **22.11.22:** - Pin certbot to 1.32.0 until plugin compatibility improves.
338339
* **05.11.22:** - Update acmedns plugin handling.
339340
* **06.10.22:** - Switch to certbot-dns-duckdns. Update cpanel and gandi dns plugin handling. Minor adjustments to init logic.
340341
* **05.10.22:** - Use certbot file hooks instead of command line hooks

jenkins-vars.yml

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

33
# jenkins variables
44
project_name: docker-swag
5-
external_type: pip_version
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
611
release_type: stable
712
release_tag: latest
813
ls_branch: master

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ app_setup_nginx_reverse_proxy_block: ""
157157

158158
# changelog
159159
changelogs:
160+
- { date: "22.11.22:", desc: "Pin certbot to 1.32.0 until plugin compatibility improves."}
160161
- { date: "05.11.22:", desc: "Update acmedns plugin handling."}
161162
- { date: "06.10.22:", desc: "Switch to certbot-dns-duckdns. Update cpanel and gandi dns plugin handling. Minor adjustments to init logic." }
162163
- { date: "05.10.22:", desc: "Use certbot file hooks instead of command line hooks" }

0 commit comments

Comments
 (0)