ci: fix SSH deploy key mount path for Forgejo runner
Some checks are pending
Release / release (push) Waiting to run
Some checks are pending
Release / release (push) Waiting to run
This commit is contained in:
parent
8bbe2fbde8
commit
b4afe150e8
1 changed files with 4 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ jobs:
|
|||
container:
|
||||
image: rust:bookworm
|
||||
volumes:
|
||||
- /root/.ssh:/root/.ssh:ro
|
||||
- /opt/runner/keys:/keys:ro
|
||||
|
||||
steps:
|
||||
- name: Install tools
|
||||
|
|
@ -22,7 +22,9 @@ jobs:
|
|||
|
||||
- name: Setup SSH
|
||||
run: |
|
||||
echo "GIT_SSH_COMMAND=ssh -p 554 -i /root/.ssh/forgejo_runner -o StrictHostKeyChecking=no" >> "$GITHUB_ENV"
|
||||
test -r /keys/forgejo_runner || { echo "Deploy key /keys/forgejo_runner chybi"; exit 1; }
|
||||
install -m 600 /keys/forgejo_runner /tmp/forgejo_runner
|
||||
echo "GIT_SSH_COMMAND=ssh -p 554 -i /tmp/forgejo_runner -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=ERROR" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Checkout source
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue