-
Notifications
You must be signed in to change notification settings - Fork 26
47 lines (45 loc) · 1.36 KB
/
copr-upload.yml
File metadata and controls
47 lines (45 loc) · 1.36 KB
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
name: upload SRPM to copr
on:
push:
branches:
- release
- stable
jobs:
upload-srpm-to-copr:
runs-on: ubuntu-latest
container: oraclelinux:10
steps:
- name: Install git
run: dnf install -y git
- name: Check out repository code
uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/install-dependencies
with:
pcap: true
dpdk: true
nfb: true
nemea: true
- name: Install copr-cli
run: |
dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpm
dnf install -y copr-cli
- name: Mark github workspace as safe
run: git config --system --add safe.directory $PWD
- name: make rpm
run: make -j $(nproc) rpm
- name: make rpm-msec
run: make -j $(nproc) rpm-msec
- name: make rpm-nemea
run: make -j $(nproc) rpm-nemea
- name: Create copr config
run: |
mkdir ~/.config
echo "${{ secrets.COPR_CONFIG }}" >> ~/.config/copr
- name: Upload SRPM to copr
run: |
if [ "${{ github.ref }}" == "refs/heads/release" ]; then
copr build @CESNET/ipfixprobe-testing build/pkg/rpm/rpmbuild/SRPMS/*
elif [ "${{ github.ref }}" == "refs/heads/stable" ]; then
copr build @CESNET/ipfixprobe build/pkg/rpm/rpmbuild/SRPMS/*
fi