Add .gitea/workflows/anisble-demo.yaml
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 5s
This commit is contained in:
23
.gitea/workflows/anisble-demo.yaml
Normal file
23
.gitea/workflows/anisble-demo.yaml
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user