-
Notifications
You must be signed in to change notification settings - Fork 35
47 lines (40 loc) · 1.04 KB
/
build-init.yml
File metadata and controls
47 lines (40 loc) · 1.04 KB
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: CI-build
on:
push:
branches: [main]
pull_request:
paths-ignore: ["docs/**"]
jobs:
build-init:
# this job initialises the vagrant box
# then just runs some initial ansible tasks
# for the full build, see build-vagrant.yml
runs-on: macos-latest
env:
VAGRANT_NO_GUI: true
VAGRANT_ON_GH: true
steps:
- uses: actions/checkout@v4
- name: set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install pip requirements
run: |
pip install --upgrade pip
pip install wheel
pip install -r requirements.txt
- name: Install Snsible requirements
run: ansible-galaxy install -r requirements.yml
- name: Build Vagrant Box and write the SSH config
run: |
vagrant up
vagrant ssh-config > vagrant-ssh
- name: Provision with Ansible
run: ansible-playbook
- name: Archive ansible log
uses: actions/upload-artifact@v4
with:
name: ansible-log
path: ansible.log