Skip to content

Commit

Permalink
Manually save ssh key
Browse files Browse the repository at this point in the history
  • Loading branch information
jordandsullivan authored Jan 23, 2025
1 parent b094440 commit 9ebb451
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/ucc-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,20 @@ jobs:
runs-on: ucc-benchmarks-8-core-U22.04

steps:
# Checkout the repository

- name: Enable SSH Debugging
- name: Setup SSH Key
run: |
echo "Debugging SSH Key..."
ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no [email protected]
- name: Checkout code
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
- name: Test SSH Key
run: ssh -i ~/.ssh/id_ed25519 -o StrictHostKeyChecking=no [email protected]

- name: Checkout Code
uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.DEPLOY_KEY }}
ssh-key: ~/.ssh/id_ed25519

# Build the Docker image
- name: Build Docker image
Expand Down

0 comments on commit 9ebb451

Please sign in to comment.