forked from oVirt/ovirt-engine-ui-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.2 KB
/
build-master.yaml
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: run build on master and tags
on:
push:
branches:
- master
tags:
- ovirt-engine-ui-extensions-*
workflow_dispatch:
jobs:
build_offline:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: EL8
container-image: quay.io/ovirt/buildcontainer:el8stream
- name: EL9
container-image: quay.io/ovirt/buildcontainer:el9stream
name: ${{ matrix.name }} - test, build and publish rpm repo for the PR (ovirt-engine-nodejs-modules build)
container:
image: ${{ matrix.container-image }}
env:
OFFLINE_BUILD: 1
steps:
- name: Ensure latest ovirt-engine-nodejs-modules is installed
run: |
rpm -q --quiet ovirt-engine-nodejs-modules && ACTION=upgrade || ACTION=install
dnf -y --disablerepo='*' --enablerepo='*ovirt*' $ACTION ovirt-engine-nodejs-modules
- name: Checkout sources
uses: ovirt/checkout-action@main
- name: Run packaging/build.sh
run: |
./packaging/build.sh
- name: Upload artifacts as rpm repo
uses: ovirt/upload-rpms-action@main
with:
directory: exported-artifacts/