forked from avocado-framework/avocado
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (30 loc) · 1010 Bytes
/
ansible.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
name: Ansible deployment test
on:
schedule:
- cron: "0 5 * * 1"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
podman:
name: Ansible (${{matrix.extra}})
runs-on: ubuntu-latest
container:
image: fedora:36
env:
RUN_BEFORE: 'dnf install -y git ansible'
GIT_URL: 'https://github.com/${{github.repository}}'
INVENTORY: 'selftests/deployment/inventory'
PLAYBOOK: 'selftests/deployment/deployment.yml'
strategy:
matrix:
extra: ["method=pip", "method=copr", "method=official", "method=pip avocado_vt=true", "method=copr avocado_vt=true"]
fail-fast: false
steps:
- uses: actions/checkout@v3
with:
ref: 'master'
fetch-depth: 0
- name: Install Ansible
run: dnf install -y git ansible
- name: Run Ansible playbook
run: ansible-pull -v -U ${{env.GIT_URL}} -i ${{env.INVENTORY}} -c local ${{env.PLAYBOOK}} -e "${{matrix.extra}}"