forked from redhat-performance/badfish
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 1.02 KB
/
push-copr-build.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
---
name: RPM build
on:
# Build only on pushes into master branch.
push:
branches: [ master ]
jobs:
build:
name: Submit a build from Fedora container
container: fedora:latest
runs-on: ubuntu-latest
steps:
- name: Check out proper version of sources
uses: actions/checkout@v1
- name: Install API token for copr-cli
env:
API_TOKEN_CONTENT: ${{ secrets.COPR_API_TOKEN }}
run: |
mkdir -p "$HOME/.config"
echo "$API_TOKEN_CONTENT" > "$HOME/.config/copr"
- name: Install tooling for source RPM build
run: |
dnf -y install @development-tools @rpm-development-tools copr-cli make zlib-devel
- name: Work around GHA permission issue
run: git config --global --add safe.directory /__w/badfish/badfish
- name: Build the source RPM
run: |
cd rpm && make srpm
- name: Submit the build by uploading the source RPM
run: |
copr build quadsdev/python3-badfish rpm/*.src.rpm