Skip to content

Commit

Permalink
GHA: Update Solaris Check Github Action With Valid Tools (#3734)
Browse files Browse the repository at this point in the history
* Update build_vagrant.yml

* Python2

* Debug

* Debug

* Debug

* Debug

* Revert

* GHA: Fix solaris playbook check action
  • Loading branch information
steelhead31 authored Oct 1, 2024
1 parent e564f93 commit 01ff5fe
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/build_vagrant.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ permissions:
jobs:
build-solaris:
name: Solaris
runs-on: ubuntu-22.04
runs-on: ubuntu-20.04
steps:

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

# As Solaris Needs An Older Version Of Ansible/Python
# Use Python2 & Pip To Install On Ubuntu 22.04
# Rather Than The System Packages

- name: Install Python 2
run: sudo apt-get install python2

- name: Python 2 Get Pip Bootstrap Script
run: curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output get-pip.py

Expand All @@ -40,15 +40,24 @@ jobs:
- name: Install Ansible Using PIP2
run: pip2 install ansible

- name: Update Repos
run: sudo apt-get update

- name: Install VirtualBox
run: sudo apt-get install virtualbox

- name: Add Hashicorp GPG Key
run: wget -O- https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg

- name: Add Hashicorp Repository
run: echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/hashicorp.list

- name: Update Repos
run: sudo apt-get update

- name: Install Vagrant
run: sudo apt-get install vagrant

- name: Add User To VBOX group
run: sudo usermod -a -G vboxusers $USER

- name: Cache Solaris10.box
id: solaris-10-cache
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
Expand Down Expand Up @@ -87,7 +96,7 @@ jobs:
# Copy the machine's ssh key for the VMs to use, after removing prior files
ssh-keygen -q -f $PWD/id_rsa -t rsa -N ''
vagrant plugin install vagrant-vbguest
vagrant up
vagrant up --provider=virtualbox
vagrantPORT=$(vagrant port | grep host | awk '{ print $4 }')
rm -f playbooks/AdoptOpenJDK_Unix_Playbook/hosts.unx
echo "[127.0.0.1]:${vagrantPORT}" >> playbooks/AdoptOpenJDK_Unix_Playbook/hosts.unx
Expand Down

0 comments on commit 01ff5fe

Please sign in to comment.