All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
23 lines
715 B
YAML
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 |