-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (41 loc) · 1.27 KB
/
ansible-builder.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
---
name: ansible-builder
on:
workflow_dispatch:
push:
paths:
- '.github/workflows/ansible-builder.yml'
- 'meta/execution-environment.yml'
- 'meta/ee-requirements.txt'
- 'meta/ee-requirements.yml'
- 'meta/ee-bindeps.txt'
pull_request:
paths:
- '.github/workflows/ansible-builder.yml'
- 'meta/execution-environment.yml'
- 'meta/ee-requirements.txt'
- 'meta/ee-requirements.yml'
- 'meta/ee-bindeps.txt'
env:
NAMESPACE: mozebaltyk
COLLECTION_NAME: rkub
jobs:
builder:
name: ansible-builder requirements
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
show-progress: false
path: ansible_collections/${{ env.NAMESPACE }}/${{ env.COLLECTION_NAME }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install ansible-builder
run: pip install ansible-builder
# this is kind of a naive check, since we aren't comparing the output to anything to verify
# so the only we'll catch with this is an egregious error that causes builder to exit nonzero
- name: Verify Requirements
run: ansible-builder introspect --sanitize .