Do not change SSH port on localdev #23
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: Deploy LibriVox local development environment | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
deploy-localdev: | |
runs-on: 'ubuntu-22.04' | |
timeout-minutes: 15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create LXC container | |
uses: lkiesow/setup-lxc-container@v1 | |
id: lxc | |
with: | |
dist: ubuntu | |
release: jammy | |
name: librivox.org | |
- name: Run localdev.yaml playbook | |
uses: dawidd6/action-ansible-playbook@v2 | |
with: | |
playbook: localdev.yaml | |
inventory: | | |
[localdev] | |
${{ steps.lxc.outputs.ip }} ansible_user=root ci_env=development ci_log_threshold=4 | |
options: | |
-l localdev | |
- name: Ensure resulting website health | |
# This relies on the LXC container creation step having added an | |
# /etc/hosts for librivox.org pointing to the container. | |
uses: notartom/website-healthcheck@v6 | |
with: | |
web-url: "https://librivox.org/dust-of-the-desert-by-robert-welles-ritchie/" | |
scan-for-text: "BENICIA" | |
insecure: true |