-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (38 loc) · 1.27 KB
/
package.yml
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
name: RPM Packaging
on:
push:
branches:
- master
jobs:
linux:
name: RPM Packaging
runs-on: ubuntu-22.04
container: rockylinux:9
steps:
- name: Install Dependencies
run: |
cat /etc/redhat-release
dnf -y install 'dnf-command(config-manager)'
dnf -y config-manager --set-enabled crb
dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
yum -y install git rpm-build rpm-sign make systemd-rpm-macros
- name: Clone Repository
uses: actions/checkout@v2
- name: Clone Package Repository
uses: actions/checkout@v2
with:
repository: warwick-one-metre/rocky-packages
token: ${{ secrets.DEPLOY_TOKEN }}
path: rocky-packages
- name: Set Package Versions
run: |
# Set the spec Revision field to <latest in repo> + 1
rocky-packages/set-spec-release.sh observatory-dashboard.spec
- name: Package RPMs
run:
make
- name: Push Packages
env:
RPM_SIGNING_KEY: ${{ secrets.RPM_SIGNING_KEY }}
run: |
rocky-packages/sign-and-push-packages.sh *.rpm