ignore all md files #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: vagrant-up | |
on: | |
push: | |
paths-ignore: | |
- '**.md' | |
jobs: | |
vagrant-set-up: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v2 | |
- name: add repo | |
run: echo "deb [arch=amd64] https://apt.releases.hashicorp.com jammy main" | sudo tee /etc/apt/sources.list.d/hashicorp.list | |
- name: add key | |
run: wget -O- https://apt.releases.hashicorp.com/gpg | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/hashicorp.gpg | |
- name: apt update | |
run: sudo apt-get update | |
- name: install packages | |
run: sudo apt install -y virtualbox virtualbox-guest-utils virtualbox-guest-x11 vagrant git | |
- name: init submodules | |
run: git submodule update --init --recursive | |
- name: Show Vagrant version | |
run: VAGRANT_LOG=debug vagrant --version | |
vagrant-user: | |
runs-on: self-hosted | |
needs: vagrant-set-up | |
steps: | |
- name: Run vagrant user.yml | |
run: VAGRANT_LOG=debug vagrant --os=ubuntu/jammy64 --local --playbook=user.yml --headless up | |
- name: Destroy vagrant user.yml | |
run: timeout -k 60 -s 9 60 vagrant destroy -f || true | |
if: always() | |
- name: Destroy all virtualbox machines | |
run: VBoxManage list vms | awk -F'"' '/.*ansible-playbooks.*/ {print $2}' | xargs -I {} VBoxManage unregistervm {} --delete | |
if: always() | |
vagrant-common-desktop: | |
runs-on: self-hosted | |
needs: vagrant-set-up | |
steps: | |
- name: Run vagrant common-desktop.yml | |
run: VAGRANT_LOG=debug vagrant --os=ubuntu/jammy64 --local --headless up | |
- name: Destroy vagrant common-desktop.yml | |
run: timeout -k 60 -s 9 60 vagrant destroy -f || true | |
if: always() | |
- name: Destroy all virtualbox machines | |
run: VBoxManage list vms | awk -F'"' '/.*ansible-playbooks.*/ {print $2}' | xargs -I {} VBoxManage unregistervm {} --delete | |
if: always() | |
vagrant-common-minimal-desktop: | |
runs-on: self-hosted | |
needs: vagrant-set-up | |
steps: | |
- name: Run vagrant common-minimal-desktop.yml | |
run: VAGRANT_LOG=debug vagrant --os=ubuntu/jammy64 --local --playbook=common-minimal-desktop.yml --headless up | |
- name: Destroy vagrant common-minimal-desktop.yml | |
run: timeout -k 60 -s 9 60 vagrant destroy -f || true | |
if: always() | |
- name: Destroy all virtualbox machines | |
run: VBoxManage list vms | awk -F'"' '/.*ansible-playbooks.*/ {print $2}' | xargs -I {} VBoxManage unregistervm {} --delete | |
if: always() | |
vagrant-user-2404: | |
runs-on: self-hosted | |
needs: vagrant-set-up | |
steps: | |
- name: Run vagrant user.yml | |
run: VAGRANT_LOG=debug vagrant --os=bento/ubuntu-24.04 --local --playbook=user.yml --headless up | |
- name: Destroy vagrant user.yml | |
run: timeout -k 60 -s 9 60 vagrant destroy -f || true | |
if: always() | |
- name: Destroy all virtualbox machines | |
run: VBoxManage list vms | awk -F'"' '/.*ansible-playbooks.*/ {print $2}' | xargs -I {} VBoxManage unregistervm {} --delete | |
if: always() | |
vagrant-common-desktop-2404: | |
runs-on: self-hosted | |
needs: vagrant-set-up | |
steps: | |
- name: Run vagrant common-desktop.yml | |
run: VAGRANT_LOG=debug vagrant --os=bento/ubuntu-24.04 --local --headless up | |
- name: Destroy vagrant common-desktop.yml | |
run: timeout -k 60 -s 9 60 vagrant destroy -f || true | |
if: always() | |
- name: Destroy all virtualbox machines | |
run: VBoxManage list vms | awk -F'"' '/.*ansible-playbooks.*/ {print $2}' | xargs -I {} VBoxManage unregistervm {} --delete | |
if: always() |