Build RPM and Debian packages on GitHub Actions
This commit is contained in:
parent
bd1dc3149e
commit
9ba15e9649
4 changed files with 49 additions and 3 deletions
46
.github/workflows/packages.yml
vendored
Normal file
46
.github/workflows/packages.yml
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
name: Debian and RPM Package Builders
|
||||
permissions: read-all
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*.*.*'
|
||||
jobs:
|
||||
debian-package-builder:
|
||||
name: Build Debian Packages
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Set up QEMU
|
||||
uses: docker/setup-qemu-action@v2
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
id: buildx
|
||||
with:
|
||||
install: true
|
||||
- name: Available Docker Platforms
|
||||
run: echo ${{ steps.buildx.outputs.platforms }}
|
||||
- name: Build Debian Packages
|
||||
run: make debian-packages
|
||||
- name: List generated files
|
||||
run: ls -l *.deb
|
||||
- name: Upload packages to repository
|
||||
env:
|
||||
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
|
||||
run: for f in *.deb; do curl -F package=@$f https://$FURY_TOKEN@push.fury.io/miniflux/; done
|
||||
rpm-package-builder:
|
||||
name: Build RPM Package
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Build RPM Package
|
||||
run: make rpm
|
||||
- name: List generated files
|
||||
run: ls -l *.rpm
|
||||
- name: Upload package to repository
|
||||
env:
|
||||
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
|
||||
run: for f in *.rpm; do curl -F package=@$f https://$FURY_TOKEN@push.fury.io/miniflux/; done
|
2
Makefile
2
Makefile
|
@ -153,7 +153,7 @@ rpm: clean
|
|||
rpmbuild -bb --define "_miniflux_version $(VERSION)" /root/rpmbuild/SPECS/miniflux.spec
|
||||
|
||||
debian:
|
||||
@ docker build \
|
||||
@ docker build --load \
|
||||
--build-arg BASE_IMAGE_ARCH=$(DEB_IMG_ARCH) \
|
||||
-t $(DEB_IMG_ARCH)/miniflux-deb-builder \
|
||||
-f packaging/debian/Dockerfile \
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
Source: miniflux
|
||||
Maintainer: Frédéric Guillot <f@miniflux.net>
|
||||
Maintainer: Frederic Guillot <f@miniflux.net>
|
||||
Build-Depends: debhelper (>= 9), dh-systemd
|
||||
|
||||
Package: miniflux
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
Files: *
|
||||
Copyright: 2017-2020 Frédéric Guillot
|
||||
Copyright: 2017-2020 Frederic Guillot
|
||||
License: Apache
|
Loading…
Reference in a new issue