Skip to content

Commit 8737b7e

Browse files
author
Pavel Siska
committed
Github-actions: add rpm-install workflow
1 parent a1cb0d1 commit 8737b7e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/rpm-install.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: rpm-install
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
os:
7+
required: true
8+
type: string
9+
10+
jobs:
11+
rpm-install:
12+
runs-on: ubuntu-latest
13+
container: ${{ inputs.os }}
14+
steps:
15+
- name: Install dependencies
16+
run: |
17+
dnf config-manager --set-enabled ol9_codeready_builder
18+
dnf install -y dnf-plugins-core epel-release
19+
dnf copr enable @CESNET/nfb-framework
20+
dnf copr enable @CESNET/NEMEA-stable
21+
- name: extract artifact name
22+
run: |
23+
OS=${{ inputs.os }}
24+
echo "artifactName=$(echo ${OS/:/}-rpm)" >> $GITHUB_ENV
25+
- name: download RPM artifact
26+
uses: actions/download-artifact@v4
27+
with:
28+
name: ${{ env.artifactName }}
29+
- name: install RPM artifact
30+
run: |
31+
dnf install -y $(ls *.rpm | grep -Ev 'ipfixprobe-msec|ipfixprobe-nemea|ipfixprobe-output-unirec')
32+
dnf install -y ipfixprobe-msec-*.rpm --allowerasing
33+
dnf install -y ipfixprobe-nemea-*.rpm ipfixprobe-output-unirec*.rpm --allowerasing

0 commit comments

Comments
 (0)