Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Merge pull request #106 from freifunk/renovate/actions-checkout-4.x #70

Merge pull request #106 from freifunk/renovate/actions-checkout-4.x

Merge pull request #106 from freifunk/renovate/actions-checkout-4.x #70

# build and deploy projects to the server
name: Build and Deploy Project descriptions
on:
push:
branches: [ main ]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
- run: |
pwd
ls -al
- name: Run playbook
uses: dawidd6/action-ansible-playbook@v2
with:
# Required, playbook filepath
playbook: deploy_coala-projects.yml
# Optional, directory where playbooks live
directory: ./deployment
# Optional, SSH private key
key: ${{secrets.SSH_KEY}}
# Optional, literal inventory file contents
inventory: |
[all]
${{secrets.SSH_HOST}}
# Optional, additional flags to pass to ansible-playbook
options: |
--inventory .ansible_inventory
--user ${{secrets.SSH_USER}}
--limit ${{secrets.SSH_HOST}}
--extra-vars "install_user=${{secrets.TARGET_USER}} install_path=${{secrets.TARGET_PATH}} ansible_user=${{secrets.SSH_USER}}"
--verbose