File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed
Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ name : upload SRPM to copr
2+
3+ on :
4+ push :
5+ branches :
6+ - release
7+ - stable
8+
9+ jobs :
10+ upload-srpm-to-copr :
11+ runs-on : ubuntu-latest
12+ container : ${{ inputs.os }}
13+ steps :
14+ - name : Install git
15+ run : dnf install -y git
16+ - name : Check out repository code
17+ uses : actions/checkout@v4
18+ - name : Install dependencies
19+ uses : ./.github/actions/install-dependencies
20+ with :
21+ pcap : true
22+ dpdk : true
23+ nfb : true
24+ nemea : true
25+
26+ - name : Mark github workspace as safe
27+ run : git config --system --add safe.directory $PWD
28+ - name : make rpm
29+ run : make rpm
30+ - name : make rpm-msec
31+ run : make rpm-msec
32+ - name : make rpm-nemea
33+ run : make rpm-nemea
34+ - name : Create copr config
35+ run : |
36+ mkdir ~/.config
37+ echo "${{ secrets.COPR_CONFIG }}" >> ~/.config/copr
38+ - name : Upload SRPM to copr
39+ run : |
40+ if [ "${{ github.ref }}" == "refs/heads/release" ]; then
41+ copr build @CESNET/ipfixprobe-testing build/pkg/rpm/rpmbuild/SRPMS/*
42+ elif [ "${{ github.ref }}" == "refs/heads/stable" ]; then
43+ copr build @CESNET/ipfixprrobe build/pkg/rpm/rpmbuild/SRPMS/*
44+ fi
You can’t perform that action at this time.
0 commit comments