build(ci) enable unstable version of qbittorrent
This commit is contained in:
parent
9d285a6696
commit
747e5652ac
2 changed files with 10 additions and 7 deletions
15
.github/workflows/auto-update.yml
vendored
15
.github/workflows/auto-update.yml
vendored
|
|
@ -11,10 +11,11 @@ jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
is_new: ${{ steps.check_ver.outputs.is_new }}
|
|
||||||
img_ver: ${{ steps.check_ver.outputs.img_ver }}
|
img_ver: ${{ steps.check_ver.outputs.img_ver }}
|
||||||
qbt_ver: ${{ steps.check_ver.outputs.qbt_ver }}
|
qbt_ver: ${{ steps.check_ver.outputs.qbt_ver }}
|
||||||
lib_ver: ${{ steps.check_ver.outputs.lib_ver }}
|
lib_ver: ${{ steps.check_ver.outputs.lib_ver }}
|
||||||
|
is_new: ${{ steps.check_ver.outputs.is_new }}
|
||||||
|
latest: ${{ steps.check_ver.outputs.latest }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
@ -24,15 +25,17 @@ jobs:
|
||||||
- name: Check version
|
- name: Check version
|
||||||
id: check_ver
|
id: check_ver
|
||||||
run: |
|
run: |
|
||||||
OLD_VER=$(curl -s "${GHCR_URL}" | grep -Po "(\d+\.){2}\d+\-r\d+" | head -1)
|
OLD_VER=$(curl -s "${GHCR_URL}" | grep -Po "(\d+\.)+\d+(|beta\d+|rc\d+)-r\d+" | head -1)
|
||||||
NEW_TAG=$(curl -s "${REPO_TAGS}" | grep -Po "release-(\d+\.){2}\d+\.zip" | head -1)
|
NEW_TAG=$(curl -s "${REPO_TAGS}" | grep -Po "(\d+\.)+\d+(|beta\d+|rc\d+)\.zip" | head -1)
|
||||||
LIB_VER=$(jq -r '.libtorrent' ./latest.json)
|
LIB_VER=$(jq -r '.libtorrent' ./latest.json)
|
||||||
QBT_VER=$(jq -r '.qbittorrent' ./latest.json)
|
QBT_VER=$(jq -r '.qbittorrent' ./latest.json)
|
||||||
PKG_REL=$(jq -r '.pkgrel' ./latest.json)
|
PKG_REL=$(jq -r '.pkgrel' ./latest.json)
|
||||||
if [ ${{ github.event_name }} == 'push' ]; then
|
if echo "${NEW_TAG%.zip}" | grep -Pq "^(\d+\.){2}\d+$"; then
|
||||||
|
echo "::set-output name=latest::type=raw,latest"
|
||||||
|
elif [ ${{ github.event_name }} == 'push' ]; then
|
||||||
IMG_VER="${QBT_VER}-r${PKG_REL}"
|
IMG_VER="${QBT_VER}-r${PKG_REL}"
|
||||||
else
|
else
|
||||||
QBT_VER="${NEW_TAG:8:5}"
|
QBT_VER="${NEW_TAG%.zip}"
|
||||||
IMG_VER="${QBT_VER}-r0"
|
IMG_VER="${QBT_VER}-r0"
|
||||||
fi
|
fi
|
||||||
IS_NEW=$([[ "${IMG_VER}" != "${OLD_VER}" ]] && echo "yes" || echo "no")
|
IS_NEW=$([[ "${IMG_VER}" != "${OLD_VER}" ]] && echo "yes" || echo "no")
|
||||||
|
|
@ -78,7 +81,7 @@ jobs:
|
||||||
type=edge
|
type=edge
|
||||||
type=schedule,pattern={{date 'YYYYMMDD'}}
|
type=schedule,pattern={{date 'YYYYMMDD'}}
|
||||||
type=raw,${{ needs.check.outputs.img_ver }}
|
type=raw,${{ needs.check.outputs.img_ver }}
|
||||||
type=raw,latest
|
${{ needs.check.outputs.latest }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
id: build
|
id: build
|
||||||
|
|
|
||||||
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
id: check_ver
|
id: check_ver
|
||||||
run: |
|
run: |
|
||||||
NEW_TAG=$(curl -s "${REPO_TAGS}" | grep -Po "(\d+\.)+\d+(|beta\d+|rc\d+)\.zip" | head -1)
|
NEW_TAG=$(curl -s "${REPO_TAGS}" | grep -Po "(\d+\.)+\d+(|beta\d+|rc\d+)\.zip" | head -1)
|
||||||
if echo "${NEW_TAG%.zip}-r0" | grep -Pq "^(\d+\.)+\d+$"; then
|
if echo "${NEW_TAG%.zip}" | grep -Pq "^(\d+\.){2}\d+$"; then
|
||||||
echo "::set-output name=latest::type=raw,latest"
|
echo "::set-output name=latest::type=raw,latest"
|
||||||
fi
|
fi
|
||||||
echo "::set-output name=new_ver::${NEW_TAG%.zip}-r0"
|
echo "::set-output name=new_ver::${NEW_TAG%.zip}-r0"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue