This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
prepare gsoc 2024 #73
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
# 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 |