This commit is contained in:
24
.gitea/workflows/runbook.yml
Normal file
24
.gitea/workflows/runbook.yml
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Run Ansible Playbook
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
run-ansible:
|
||||
runs-on: self-hosted
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Decode SSH key
|
||||
run: |
|
||||
echo "${{ secrets.ANSIBLE_KEY_BASE64 }}" | base64 -d > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
|
||||
- name: echo SSH key
|
||||
run: |
|
||||
ls -la ~/.ssh
|
||||
cat ~/.ssh/id_rsa
|
||||
Reference in New Issue
Block a user