-
Notifications
You must be signed in to change notification settings - Fork 1
83 lines (75 loc) · 2.39 KB
/
qbittorrent.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: qBittorrent
on:
push:
paths:
- .github/workflows/qbittorrent.yml
- contexts/qbittorrent/*
pull_request:
paths:
- .github/workflows/qbittorrent.yml
- contexts/qbittorrent/*
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
# renovate: datasource=github-tags depName=qbittorrent/qBittorrent extractVersion=^release-(?<version>.*)$
QBITTORRENT_VERSION: "5.0.2"
jobs:
versions:
name: Versions
outputs:
QBITTORRENT_VERSION: ${{ env.QBITTORRENT_VERSION }}
runs-on: ubuntu-24.04
steps:
- name: Generate outputs
run: |
echo "QBITTORRENT_VERSION=${{ env.QBITTORRENT_VERSION }}" >> $GITHUB_OUTPUT
build-publish:
name: Call Build
needs: versions
permissions:
attestations: write
contents: read
id-token: write
packages: write
security-events: write
uses: oliversalzburg/workflows/.github/workflows/publish-oci.yml@main
with:
build-args: |
QBITTORRENT_VERSION=${{ needs.versions.outputs.QBITTORRENT_VERSION }}
context: contexts/qbittorrent
image-description: The qBittorrent project aims to provide an open-source software alternative to µTorrent.
image-name: oliversalzburg/containers/qbittorrent
image-tag: ${{ needs.versions.outputs.QBITTORRENT_VERSION }}
image-title: qBittorrent
is-latest: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
push: ${{ github.event_name == 'push' && github.ref_name == 'main' }}
with-sarif: false
with-sbom: false
test:
name: Test
needs:
- versions
- build-publish
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Run container with image
run: |
.scripts/test.sh podman run --rm ghcr.io/oliversalzburg/containers/qbittorrent:${{ needs.versions.outputs.QBITTORRENT_VERSION }}
qa-successful:
if: ( success() || failure() )
name: Evaluate QA results
needs:
- build-publish
- test
runs-on: ubuntu-24.04
steps:
- name: Success
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failure
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1