Skip to content

Add FoundationDB deploy example #20

Add FoundationDB deploy example

Add FoundationDB deploy example #20

Workflow file for this run

name: Test Deploys
on:
push:
jobs:
deploy-test:
strategy:
matrix:
include:
- dir: full-deploys/python-web-app
deploy-file: deploy_app.py
inventory-file: inventories/docker.py
- dir: full-deploys/foundationdb-cluster
deploy-file: deploy_foundationdb.py
inventory-file: inventories/docker.py
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- uses: docker/setup-buildx-action@v2
- run: pip install pyinfra --pre
- run: ./docker-start.sh
working-directory: ${{ matrix.dir }}
- name: Run pyinfra deploy
run: pyinfra -y ${{ matrix.inventory-file }} ${{ matrix.deploy-file }}
working-directory: ${{ matrix.dir }}
if: ${{ runner.debug }}
- name: Run pyinfra deploy (debug mode)
run: pyinfra -y -vvv ${{ matrix.inventory-file }} ${{ matrix.deploy-file }}
working-directory: ${{ matrix.dir }}
if: ${{ !runner.debug }}
- run: ./docker-stop.sh
working-directory: ${{ matrix.dir }}