Skip to content

Commit

Permalink
Merge pull request #7 from CESNET/release-on-copr
Browse files Browse the repository at this point in the history
ci - upload RPM automatically to copr
  • Loading branch information
SiskaPavel authored Apr 29, 2024
2 parents 3f1a7f8 + ca1f838 commit 87f22a1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/copr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release package on copr

on:
push:
branches:
- release

jobs:
release-package-on-copr:
runs-on: ubuntu-latest
container: oraclelinux:8
steps:
- name: Install dependencies
run: |
dnf install -y dnf-plugins-core epel-release
dnf -y copr enable @CESNET/NEMEA
dnf install -y make gcc-c++ cmake3 git rpm-build fuse3-devel copr-cli
- name: Check out repository code
uses: actions/checkout@v4
- name: Mark github workspace as safe
run: git config --system --add safe.directory $PWD
- name: make rpm
run: make rpm
- name: Create copr config
run: |
mkdir ~/.config
echo "${{ secrets.COPR_CONFIG }}" >> ~/.config/copr
- name: Upload SRPM to copr
run: |
copr build @CESNET/NEMEA build/pkg/rpm/rpmbuild/SRPMS/*
copr build @CESNET/NEMEA-stable build/pkg/rpm/rpmbuild/SRPMS/*
1 change: 1 addition & 0 deletions pkg/rpm/telemetry.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}
BuildRequires: gcc-c++ >= 8
BuildRequires: make
BuildRequires: git
BuildRequires: fuse3-devel >= 3.2.1
BuildRequires: cmake >= 3.12

Expand Down

0 comments on commit 87f22a1

Please sign in to comment.