Files
actions/.gitea/workflows/anisble-demo.yaml
ozzy 4a7bc460db
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
Add .gitea/workflows/anisble-demo.yaml
2024-06-29 10:37:14 +00:00

23 lines
715 B
YAML

name: Ansible Demo
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
run-playbooks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup SSH
shell: bash
run: |
eval `ssh-agent -s`
mkdir -p /home/runner/.ssh/
touch /home/runner/.ssh/id_rsa
echo -e "${{secrets.SSH_KEY}}" > /home/runner/.ssh/id_rsa
chmod 700 /home/runner/.ssh/id_rsa
ssh-keyscan -t rsa,dsa,ecdsa,ed25519 ${{secrets.SSH_HOST}} >> /home/runner/.ssh/known_hosts