qee:5.0.4.10

This commit is contained in:
John
2025-03-01 10:02:24 +08:00
parent 3dbaf92f0e
commit 256e11f97d
4 changed files with 30 additions and 54 deletions

View File

@ -4,6 +4,7 @@ on:
push:
paths:
- 'qBittorrent/Dockerfile.libtorrent'
- 'qBittorrent/Dockerfile.libtorrent2'
workflow_dispatch:
jobs:
@ -17,7 +18,9 @@ jobs:
- name: 'Set env'
run: |
echo "LIBTORRENT_VER=$(echo `grep -n "LIBTORRENT_VER=" qBittorrent/Dockerfile.libtorrent`|awk -F= '{print $2}')" >> $GITHUB_ENV
echo "ALPINE_VER=$(echo `grep -n "alpine" qBittorrent/Dockerfile.libtorrent`|awk -F: '{print $3}')" >> $GITHUB_ENV
echo "LIBTORRENT_ALPINE_VER=$(echo `grep -n "alpine" qBittorrent/Dockerfile.libtorrent`|awk -F: '{print $3}')" >> $GITHUB_ENV
echo "LIBTORRENT2_VER=$(echo `grep -n "LIBTORRENT_VER=" qBittorrent/Dockerfile.libtorrent2`|awk -F= '{print $2}')" >> $GITHUB_ENV
echo "LIBTORRENT2_ALPINE_VER=$(echo `grep -n "alpine" qBittorrent/Dockerfile.libtorrent2`|awk -F: '{print $3}')" >> $GITHUB_ENV
- name: Set up QEMU
id: qemu
@ -38,7 +41,13 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Check image exist
id: libtorrent-check-step
run: |
if [ `DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect ghcr.io/gshang2017/libtorrent:${{ env.LIBTORRENT_VER }}-alpine-${{ env.LIBTORRENT_ALPINE_VER }} > /dev/null 2>&1; echo $?` == "0" ];then echo "skipnext=true" >> $GITHUB_OUTPUT;fi
- name: Build and push
if : ( steps.libtorrent-check-step.outputs.skipnext != 'true' )
uses: docker/build-push-action@v6
with:
context: ./qBittorrent
@ -48,4 +57,21 @@ jobs:
tags: |
ghcr.io/gshang2017/libtorrent:latest
ghcr.io/gshang2017/libtorrent:1
ghcr.io/gshang2017/libtorrent:${{ env.LIBTORRENT_VER }}-alpine-${{ env.ALPINE_VER }}
ghcr.io/gshang2017/libtorrent:${{ env.LIBTORRENT_VER }}-alpine-${{ env.LIBTORRENT_ALPINE_VER }}
- name: Check image exist
id: libtorrent2-check-step
run: |
if [ `DOCKER_CLI_EXPERIMENTAL=enabled docker manifest inspect ghcr.io/gshang2017/libtorrent:${{ env.LIBTORRENT2_VER }}-alpine-${{ env.LIBTORRENT2_ALPINE_VER }} > /dev/null 2>&1; echo $?` == "0" ];then echo "skipnext=true" >> $GITHUB_OUTPUT;fi
- name: Build and push
if : ( steps.libtorrent2-check-step.outputs.skipnext != 'true' )
uses: docker/build-push-action@v6
with:
context: ./qBittorrent
file: ./qBittorrent/Dockerfile.libtorrent2
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
ghcr.io/gshang2017/libtorrent:2
ghcr.io/gshang2017/libtorrent:${{ env.LIBTORRENT2_VER }}-alpine-${{ env.LIBTORRENT2_ALPINE_VER }}

View File

@ -1,50 +0,0 @@
name: libtorrent2
on:
push:
paths:
- 'qBittorrent/Dockerfile.libtorrent2'
workflow_dispatch:
jobs:
job1:
name: buildx tag
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Set env'
run: |
echo "LIBTORRENT_VER=$(echo `grep -n "LIBTORRENT_VER=" qBittorrent/Dockerfile.libtorrent2`|awk -F= '{print $2}')" >> $GITHUB_ENV
echo "ALPINE_VER=$(echo `grep -n "alpine" qBittorrent/Dockerfile.libtorrent2`|awk -F: '{print $3}')" >> $GITHUB_ENV
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
version: latest
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./qBittorrent
file: ./qBittorrent/Dockerfile.libtorrent2
platforms: linux/amd64,linux/arm64,linux/arm/v7
push: true
tags: |
ghcr.io/gshang2017/libtorrent:2
ghcr.io/gshang2017/libtorrent:${{ env.LIBTORRENT_VER }}-alpine-${{ env.ALPINE_VER }}

View File

@ -1,7 +1,7 @@
#compiling qB
FROM ghcr.io/gshang2017/libtorrent:1 AS compilingqb
ARG QBITTORRENT_EE_VER=5.0.3.10
ARG QBITTORRENT_EE_VER=5.0.4.10
RUN apk add --no-cache ca-certificates cmake build-base boost-dev wget samurai qt6-qttools-dev \
&& mkdir -p /tmp/qbbuild \

View File

@ -14,7 +14,7 @@
|名称|版本|说明|
|:-|:-|:-|
|qBittorrent-qBittorrentEE|5.0.4-5.0.3.10|(amd64;arm64v8;arm32v7) 集成Trackers自动更新|
|qBittorrent-qBittorrentEE|5.0.4-5.0.4.10|(amd64;arm64v8;arm32v7) 集成Trackers自动更新|
#### 版本升级注意: