-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (35 loc) · 1.12 KB
/
deploy-localdev.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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@v4
with:
web-url: "https://librivox.org/dust-of-the-desert-by-robert-welles-ritchie/"
scan-for-text: "BENICIA"
insecure: true