Skip to content

Commit

Permalink
add ubuntu 24 test
Browse files Browse the repository at this point in the history
  • Loading branch information
ahembree committed Nov 25, 2024
1 parent bb09327 commit eb88d47
Showing 1 changed file with 53 additions and 1 deletion.
54 changes: 53 additions & 1 deletion .github/workflows/run-playbook.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Deployment Tests
run-name: Test Deployment
run-name: Test Ubuntu Deployments
on:
push:
pull_request:
Expand Down Expand Up @@ -61,3 +61,55 @@ jobs:
hms-docker.yml
--diff
--extra-vars "@.github/extra-vars.yml"
Ubuntu_24:
runs-on: ubuntu-24.04
steps:
- name: Check out repo code
uses: actions/checkout@v4

- name: Install ansible
run: |
sudo apt update
sudo sudo apt install software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install ansible
- name: Ensure base playbook requirements
# does not use the `make` command since it requires input and we cannot input in a Runner
run: |
mkdir -p ./inventory/group_vars/all
cp ./roles/hmsdocker/defaults/main/*.yml ./inventory/group_vars/all
chmod 0600 ./inventory/group_vars/all/*.yml
make install-reqs
- name: Run playbook in check mode
run: >-
sudo ansible-playbook
-i inventory/hosts.yml
hms-docker.yml
--diff
--check
--extra-vars "@.github/extra-vars.yml"
- name: Run playbook
run: >-
sudo ansible-playbook
-i inventory/hosts.yml
hms-docker.yml
--diff
--extra-vars "@.github/extra-vars.yml"
- name: Check containers
run: |
sleep 60
sudo pip3 install -r .github/workflows/scripts/requirements.txt
sudo make verify-containers
- name: Run playbook again to ensure API keys are retrieved
run: >-
sudo ansible-playbook
-i inventory/hosts.yml
hms-docker.yml
--diff
--extra-vars "@.github/extra-vars.yml"

0 comments on commit eb88d47

Please sign in to comment.