Test Deployment #104
Workflow file for this run
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: Deployment Tests | |
run-name: Test Deployment | |
on: | |
push: | |
schedule: | |
- cron: '23 9 * * 0' | |
permissions: | |
contents: read | |
jobs: | |
Ubuntu_22: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Check out repo code | |
uses: actions/checkout@v4 | |
- name: Install ansible | |
run: | | |
sudo apt update | |
sudo apt install make python3-pip | |
sudo pip3 install ansible | |
- name: Ensure base playbook requirements | |
run: | | |
mkdir -p ./vars/custom | |
cp vars/default/*.yml ./vars/custom | |
mv ./vars/custom/main.yml ./vars/custom/main_custom.yml | |
sudo make install-reqs | |
- name: Run playbook | |
run: >- | |
sudo ansible-playbook | |
-i inventory | |
--connection local | |
hms-docker.yml | |
--diff | |
--extra-vars "@.github/extra-vars.yml" | |
- name: Check containers | |
run: | | |
sleep 10 | |
sudo make verify-containers |