Skip to content

Commit

Permalink
Migrate to self-host runner
Browse files Browse the repository at this point in the history
  • Loading branch information
electrocucaracha committed Dec 18, 2024
1 parent 2aeae6f commit c83fc44
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 13 deletions.
9 changes: 1 addition & 8 deletions .github/actions/vagrant-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,8 @@ runs:
shell: bash
run: |
if [[ "$(VBoxManage --version)" == "6.1.28r147628" ]]; then
find . -type f -iname "Vagrantfile" -exec sed -i '.bak' 's|v.gui = .*|v.gui = true|g' {} \;
find . -type f -name "*.bak" -delete
find . -type f -name "Vagrantfile" -exec sed -i 's|v.gui = .*|v.gui = true|g' {} \;
fi
- name: Replace shorten links
shell: bash
run: find . -type f -iname "*sh" -exec sed -i '.bak' 's|http://bit.ly/install_pkg|https://raw.githubusercontent.com/electrocucaracha/pkg-mgr_scripts/master/install.sh|g' {} \;
- name: Install vagrant tool
shell: bash
run: brew install vagrant
- name: Install Vagrant Reload plugin
shell: bash
run: vagrant plugin install vagrant-reload
4 changes: 1 addition & 3 deletions .github/workflows/distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:

jobs:
check-versions:
runs-on: macos-12
runs-on: vm-self-hosted
permissions:
contents: write # for technote-space/create-pr-action to push code
pull-requests: write # for technote-space/create-pr-action to create a PR
Expand All @@ -27,8 +27,6 @@ jobs:
with:
path: ~/.vagrant.d/boxes
key: ${{ runner.os }}-vagrant-${{ hashFiles('distros_supported.yml') }}
- name: Install vagrant tool
run: brew install vagrant
- uses: technote-space/create-pr-action@91114507cf92349bec0a9a501c2edf1635427bc5 # refs/tags/v2.1.4
with:
EXECUTE_COMMANDS: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/on-demand_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
run: ../shellspec/shellspec --profile --xtrace
check-setup:
name: Check setup script on different distros using libvirt and/or virtualbox providers
runs-on: macos-12
runs-on: vm-self-hosted
if: >-
(
github.event_name == 'pull_request_review' &&
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scheduled_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
CREATE_QAT_VFS: true
run: ./setup.sh
check-vagrant:
runs-on: macos-12
runs-on: vm-self-hosted
strategy:
fail-fast: false
matrix:
Expand Down

0 comments on commit c83fc44

Please sign in to comment.