Kris Lamoureux
a0aa289c05
- The Vagrant testing setup on macos-latest is broken - Temporary measure until fixed or abandoned
41 lines
937 B
YAML
41 lines
937 B
YAML
name: homelab-ci
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- github_actions
|
|
# - 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@7
|
|
|
|
- name: Software Versions
|
|
run: |
|
|
printf "VirtualBox "
|
|
vboxmanage --version
|
|
vagrant --version
|
|
export PATH="/usr/local/opt/ansible@7/bin:$PATH"
|
|
ansible --version
|
|
|
|
- name: Vagrant Up with Dockerbox Playbook
|
|
run: |
|
|
export PATH="/usr/local/opt/ansible@7/bin:$PATH"
|
|
PLAYBOOK=dockerbox vagrant up
|
|
vagrant ssh -c "docker ps"
|