homelab/.github/workflows/vagrant.yml

50 lines
1.1 KiB
YAML
Raw Normal View History

name: homelab-ci
on:
push:
branches:
- main
- testing
jobs:
homelab-ci:
2024-05-02 05:37:26 +00:00
runs-on: macos-13
steps:
- uses: actions/checkout@v3
2024-05-03 06:36:42 +00:00
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
with:
detached: true
limit-access-to-actor: true
- name: Cache Vagrant boxes
uses: actions/cache@v3
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('Vagrantfile') }}
restore-keys: |
${{ runner.os }}-vagrant-
2024-05-02 05:58:07 +00:00
- name: Install Tools
run: brew install nmap tree
2024-05-02 05:37:26 +00:00
- name: Install VirtualBox
run: brew install --cask virtualbox
- name: Install Vagrant
run: brew install --cask vagrant
- name: Install Ansible
2024-05-02 05:37:26 +00:00
run: brew install ansible
- name: Software Versions
run: |
2024-05-02 05:37:26 +00:00
printf "VirtualBox "; vboxmanage --version
vagrant --version
ansible --version
- name: Vagrant Up with Dockerbox Playbook
2024-05-02 05:58:07 +00:00
run: ./scripts/github-vagrant.sh