homelab/.github/workflows/vagrant.yml

41 lines
890 B
YAML
Raw Normal View History

name: homelab-ci
on:
push:
branches:
- main
- testing
jobs:
homelab-ci:
2024-04-29 00:59:05 +00:00
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- 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-04-29 00:59:05 +00:00
- name: Install VirtualBox
run: brew install --cask virtualbox
- name: Install Ansible
2024-04-29 00:59:05 +00:00
run: brew install ansible
- name: Software Versions
run: |
2024-04-29 00:59:05 +00:00
printf "VirtualBox "; vboxmanage --version
vagrant --version
ansible --version
- name: Vagrant Up with Dockerbox Playbook
run: |
2024-04-29 00:59:05 +00:00
export VAGRANT_LOG=debug
PLAYBOOK=dockerbox vagrant up
vagrant ssh -c "docker ps"