Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: create rpm packages #2

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:

build-rpm:
runs-on: ubuntu-latest

env:
version: 2.0.1
pkg: qubes-video-companion

steps:
- uses: actions/checkout@v3
- name: Build fedora docker image
run: docker build --tag fedora-35-builder --build-arg pkg_name=$pkg-$version .
- name: Build rpm
run: docker run -v $PWD/RPMS/:/root/rpmbuild/RPMS/ fedora-35-builder bash -c "rpmbuild -ba /root/rpmbuild/SPECS/$pkg.spec.in"
- name: Archive packages
uses: actions/upload-artifact@v3
with:
name: rpms
path: RPMS/
14 changes: 14 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM fedora:35

ARG pkg_name
ENV pkg_name=$pkg_name

WORKDIR /
RUN dnf install -y rpm-build rpmdevtools pandoc make

COPY . /$pkg_name/

RUN tar czf $pkg_name.tar.gz $pkg_name
RUN rpmdev-setuptree
RUN mv $pkg_name.tar.gz /root/rpmbuild/SOURCES
RUN cp /$pkg_name/rpm_spec/*.spec.in /root/rpmbuild/SPECS
2 changes: 1 addition & 1 deletion rpm_spec/qubes-video-companion-dom0.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
%define vm_name qubes-video-companion

Name: %{vm_name}-dom0
Version: 1.0.0
Version: 2.0.1
Release: 1%{?dist}
Summary: Securely stream webcams and share screens across virtual machines

Expand Down
2 changes: 1 addition & 1 deletion rpm_spec/qubes-video-companion.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Licensed under the MIT License. See LICENSE file for details.

Name: qubes-video-companion
Version: 1.0.0
Version: 2.0.1
Release: 1%{?dist}
Summary: Securely stream webcams and share screens across virtual machines

Expand Down