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