homelab/.github/workflows/vagrant.yml
2024-04-23 22:12:06 -04:00

37 lines
781 B
YAML

name: homelab-ci
on:
push:
branches:
- main
- testing
jobs:
homelab-ci:
runs-on: macos-latest
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-
- name: Install Ansible
run: brew install ansible
- name: Software Versions
run: |
printf "VirtualBox "; vboxmanage --version
vagrant --version
ansible --version
- name: Vagrant Up with Dockerbox Playbook
run: |
PLAYBOOK=dockerbox vagrant up
vagrant ssh -c "docker ps"