Skip to content

Commit

Permalink
Merge pull request #48 from linuxserver/tagfix
Browse files Browse the repository at this point in the history
retrieve stable tags only
  • Loading branch information
aptalca authored Feb 10, 2024
2 parents a70adbd + 99062c3 commit 1622ec9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/external_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_ZNC_MASTER\". ****"
echo "External trigger running off of master branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_ZNC_MASTER\`" >> $GITHUB_STEP_SUMMARY
echo "**** Retrieving external version ****"
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/znc/znc/tags" | jq -r '. | .[0].name')
EXT_RELEASE=$(curl -u "${{ secrets.CR_USER }}:${{ secrets.CR_PAT }}" -sX GET "https://api.github.com/repos/znc/znc/tags" | jq -r '. | first(.[] | select(.name | contains("-rc") | not)) | .name')
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
echo "**** Can't retrieve external version, exiting ****"
FAILURE_REASON="Can't retrieve external version for znc branch master"
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN \
echo "**** compile znc ****" && \
if [ -z ${ZNC_RELEASE+x} ]; then \
ZNC_RELEASE=$(curl -s https://api.github.com/repos/znc/znc/tags \
| jq -r ". | .[0].name"); \
| jq -r 'first(.[] | select(.name | contains("-rc") | not)) | .name'); \
fi && \
mkdir -p \
/tmp/znc && \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN \
echo "**** compile znc ****" && \
if [ -z ${ZNC_RELEASE+x} ]; then \
ZNC_RELEASE=$(curl -s https://api.github.com/repos/znc/znc/tags \
| jq -r ". | .[0].name"); \
| jq -r 'first(.[] | select(.name | contains("-rc") | not)) | .name'); \
fi && \
mkdir -p \
/tmp/znc && \
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pipeline {
GITLAB_NAMESPACE=credentials('gitlab-namespace-id')
DOCKERHUB_TOKEN=credentials('docker-hub-ci-pat')
JSON_URL = 'https://api.github.com/repos/znc/znc/tags'
JSON_PATH = '.[0].name'
JSON_PATH = 'first(.[] | select(.name | contains("-rc") | not)) | .name'
BUILD_VERSION_ARG = 'ZNC_RELEASE'
LS_USER = 'linuxserver'
LS_REPO = 'docker-znc'
Expand Down
2 changes: 1 addition & 1 deletion jenkins-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ release_tag: latest
ls_branch: master
repo_vars:
- JSON_URL = 'https://api.github.com/repos/znc/znc/tags'
- JSON_PATH = '.[0].name'
- JSON_PATH = 'first(.[] | select(.name | contains("-rc") | not)) | .name'
- BUILD_VERSION_ARG = 'ZNC_RELEASE'
- LS_USER = 'linuxserver'
- LS_REPO = 'docker-znc'
Expand Down

0 comments on commit 1622ec9

Please sign in to comment.