From b480807c8910580aa2751917207aa77a3052ff08 Mon Sep 17 00:00:00 2001 From: moritzrfs Date: Mon, 5 May 2025 22:34:35 +0200 Subject: [PATCH] Fix new try --- .gitea/workflows/runbook.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/runbook.yml b/.gitea/workflows/runbook.yml index 64525e7..8ac25c5 100644 --- a/.gitea/workflows/runbook.yml +++ b/.gitea/workflows/runbook.yml @@ -13,14 +13,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 - - name: Decode SSH key + - name: Copy base64 encoded SSH key to file run: | - echo "${{ secrets.ANSIBLE_KEY_BASE64 }}" | base64 -d > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - - name: echo base64 key - run: | - echo "${{ secrets.ANSIBLE2 }}" - - name: echo SSH key - run: | - ls -la ~/.ssh - cat ~/.ssh/id_rsa \ No newline at end of file + echo "${{ secrets.ANSIBLE_SSH_KEY }}" | base64 --decode > ansible_key + chmod 600 ansible_key + - name: cat ansible_key + run: cat ansible_key \ No newline at end of file