forked from oVirt/ovirt-ansible-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (54 loc) · 1.59 KB
/
build.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build_8:
name: Build 8 - ansible 2.9
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream8
steps:
- name: Install packages
run: yum install -y rpm-build yum-utils git epel-release
- name: Install ansible packages
run: yum install -y ansible ansible-test python3-pycodestyle python3-pylint python3-voluptuous yamllint glibc-langpack-en
- name: Update all packages
run: yum update -y
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Run build.sh
run: ./automation/build.sh
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: el8_artifacts
path: exported-artifacts/
build_9stream:
name: Build 9stream - ansible-core 2.12
runs-on: ubuntu-latest
container:
image: quay.io/centos/centos:stream9
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install packages
run: yum install -y rpm-build yum-utils git ansible-core ansible-test python3-pip
- name: Update all packages
run: yum update -y
- name: Install pip modules
run: pip3 install pycodestyle pylint==2.4.4 voluptuous yamllint
- name: Run build.sh
run: ./automation/build.sh
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: el9stream_artifacts
path: exported-artifacts/