Skip to content

Commit 8a6124a

Browse files
committed
Make master stable
1 parent f483d48 commit 8a6124a

File tree

7 files changed

+31
-20
lines changed

7 files changed

+31
-20
lines changed

.github/workflows/external_trigger.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
2727
echo "> External trigger running off of master branch. To disable this trigger, add \`duplicati_master\` into the Github organizational variable \`SKIP_EXTERNAL_TRIGGER\`." >> $GITHUB_STEP_SUMMARY
2828
printf "\n## Retrieving external version\n\n" >> $GITHUB_STEP_SUMMARY
29-
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" | jq -r '. | first(.[] | select(.tag_name | contains("beta"))) | .tag_name')
30-
echo "Type is \`custom_json\`" >> $GITHUB_STEP_SUMMARY
29+
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/duplicati/duplicati/releases/latest" | jq -r '. | .tag_name')
30+
echo "Type is \`github_stable\`" >> $GITHUB_STEP_SUMMARY
3131
if grep -q "^duplicati_master_${EXT_RELEASE}" <<< "${SKIP_EXTERNAL_TRIGGER}"; then
3232
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3333
echo "> Github organizational variable \`SKIP_EXTERNAL_TRIGGER\` matches current external release; skipping trigger." >> $GITHUB_STEP_SUMMARY

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ RUN \
3030
xz-utils && \
3131
echo "**** install duplicati ****" && \
3232
if [ -z ${DUPLICATI_RELEASE+x} ]; then \
33-
DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
34-
| jq -r 'first(.[] | select(.tag_name | contains("beta"))) | .tag_name'); \
33+
DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases/latest" \
34+
| jq -r .tag_name); \
3535
fi && \
3636
duplicati_url=$(curl -s "https://api.github.com/repos/duplicati/duplicati/releases/tags/${DUPLICATI_RELEASE}" | jq -r '.assets[].browser_download_url' |grep 'linux-x64-gui.zip$') && \
3737
curl -o \

Dockerfile.aarch64

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ RUN \
3030
xz-utils && \
3131
echo "**** install duplicati ****" && \
3232
if [ -z ${DUPLICATI_RELEASE+x} ]; then \
33-
DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases" \
34-
| jq -r 'first(.[] | select(.tag_name | contains("beta"))) | .tag_name'); \
33+
DUPLICATI_RELEASE=$(curl -sX GET "https://api.github.com/repos/duplicati/duplicati/releases/latest" \
34+
| jq -r .tag_name); \
3535
fi && \
3636
duplicati_url=$(curl -s "https://api.github.com/repos/duplicati/duplicati/releases/tags/${DUPLICATI_RELEASE}" | jq -r '.assets[].browser_download_url' |grep 'linux-arm64-gui.zip$') && \
3737
curl -o \

Jenkinsfile

+15-7
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ 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-
JSON_URL = 'https://api.github.com/repos/duplicati/duplicati/releases'
23-
JSON_PATH = 'first(.[] | select(.tag_name | contains("beta"))) | .tag_name'
22+
EXT_GIT_BRANCH = 'master'
23+
EXT_USER = 'duplicati'
24+
EXT_REPO = 'duplicati'
2425
BUILD_VERSION_ARG = 'DUPLICATI_RELEASE'
2526
LS_USER = 'linuxserver'
2627
LS_REPO = 'docker-duplicati'
@@ -138,14 +139,21 @@ pipeline {
138139
/* ########################
139140
External Release Tagging
140141
######################## */
141-
// If this is a custom json endpoint parse the return to get external tag
142-
stage("Set ENV custom_json"){
142+
// If this is a stable github release use the latest endpoint from github to determine the ext tag
143+
stage("Set ENV github_stable"){
143144
steps{
144145
script{
145146
env.EXT_RELEASE = sh(
146-
script: '''curl -s ${JSON_URL} | jq -r ". | ${JSON_PATH}" ''',
147+
script: '''curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq -r '. | .tag_name' ''',
147148
returnStdout: true).trim()
148-
env.RELEASE_LINK = env.JSON_URL
149+
}
150+
}
151+
}
152+
// If this is a stable or devel github release generate the link for the build message
153+
stage("Set ENV github_link"){
154+
steps{
155+
script{
156+
env.RELEASE_LINK = 'https://github.com/' + env.EXT_USER + '/' + env.EXT_REPO + '/releases/tag/' + env.EXT_RELEASE
149157
}
150158
}
151159
}
@@ -982,7 +990,7 @@ pipeline {
982990
"tagger": {"name": "LinuxServer-CI","email": "[email protected]","date": "'${GITHUB_DATE}'"}}' '''
983991
echo "Pushing New release for Tag"
984992
sh '''#! /bin/bash
985-
echo "Data change at JSON endpoint ${JSON_URL}" > releasebody.json
993+
curl -H "Authorization: token ${GITHUB_TOKEN}" -s https://api.github.com/repos/${EXT_USER}/${EXT_REPO}/releases/latest | jq '. |.body' | sed 's:^.\\(.*\\).$:\\1:' > releasebody.json
986994
echo '{"tag_name":"'${META_TAG}'",\
987995
"target_commitish": "master",\
988996
"name": "'${META_TAG}'",\

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ This image provides various versions that are available via tags. Please read th
6363

6464
| Tag | Available | Description |
6565
| :----: | :----: |--- |
66-
| latest || Beta releases of Duplicati |
67-
| development || Canary releases of Duplicati |
66+
| latest || Stable releases of Duplicati |
67+
| development || Beta releases of Duplicati |
6868

6969
## Application Setup
7070

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

302302
## Versions
303303

304+
* **31.01.25:** - Make `latest` stable releases, move beta releases to `development`.
304305
* **28.01.25:** - Add xz-utils.
305306
* **03.12.24:** - Add mscorefonts for captcha support.
306307
* **29.11.24:** - Rebase to Noble, add support for settings DB encryption.

jenkins-vars.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
# jenkins variables
44
project_name: docker-duplicati
5-
external_type: custom_json
5+
external_type: github_stable
66
release_type: stable
77
release_tag: latest
88
ls_branch: master
99
repo_vars:
10-
- JSON_URL = 'https://api.github.com/repos/duplicati/duplicati/releases'
11-
- JSON_PATH = 'first(.[] | select(.tag_name | contains("beta"))) | .tag_name'
10+
- EXT_GIT_BRANCH = 'master'
11+
- EXT_USER = 'duplicati'
12+
- EXT_REPO = 'duplicati'
1213
- BUILD_VERSION_ARG = 'DUPLICATI_RELEASE'
1314
- LS_USER = 'linuxserver'
1415
- LS_REPO = 'docker-duplicati'

readme-vars.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ available_architectures:
1414
# development version
1515
development_versions: true
1616
development_versions_items:
17-
- {tag: "latest", desc: "Beta releases of Duplicati"}
18-
- {tag: "development", desc: "Canary releases of Duplicati"}
17+
- {tag: "latest", desc: "Stable releases of Duplicati"}
18+
- {tag: "development", desc: "Beta releases of Duplicati"}
1919
# container parameters
2020
common_param_env_vars_enabled: true
2121
param_container_name: "{{ project_name }}"
@@ -82,6 +82,7 @@ init_diagram: |
8282
"duplicati:latest" <- Base Images
8383
# changelog
8484
changelogs:
85+
- {date: "31.01.25:", desc: "Make `latest` stable releases, move beta releases to `development`."}
8586
- {date: "28.01.25:", desc: "Add xz-utils."}
8687
- {date: "03.12.24:", desc: "Add mscorefonts for captcha support."}
8788
- {date: "29.11.24:", desc: "Rebase to Noble, add support for settings DB encryption."}

0 commit comments

Comments
 (0)