From 39ee3a89f0bd81e5fbd579867065fe8c6d666c7c Mon Sep 17 00:00:00 2001 From: moritzrfs Date: Mon, 5 May 2025 21:50:07 +0200 Subject: [PATCH] Add workflow --- .gitea/workflows/runbook.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .gitea/workflows/runbook.yml diff --git a/.gitea/workflows/runbook.yml b/.gitea/workflows/runbook.yml new file mode 100644 index 0000000..1885376 --- /dev/null +++ b/.gitea/workflows/runbook.yml @@ -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 \ No newline at end of file