-
Notifications
You must be signed in to change notification settings - Fork 30
48 lines (48 loc) · 1.23 KB
/
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
39
40
41
42
43
44
45
46
47
48
---
name: CI
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
env:
ANSIBLE_FORCE_COLOR: 1
jobs:
ubuntu-22:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install ansible
run: |
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible -y
ansible --version
- name: Run playbook
run: |
ansible-galaxy install -r requirements.yml
cd ..
ansible-playbook ansible-role-jenkins/playbook.yml
opensuse-leap:
runs-on: ubuntu-22.04
container: opensuse/leap:latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Install ansible
run: |
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get update
sudo apt-get install ansible -y
ansible --version
- name: Run playbook
run: |
ansible-galaxy install -r requirements.yml
cd ..
ansible-playbook ansible-role-jenkins/playbook.yml