Skip to content

Commit

Permalink
sanity check ssh keyfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lrvick committed Oct 29, 2024
1 parent 7e900e2 commit 1f5cc50
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,14 @@ jobs:
echo "${{ secrets.REPROS_KEY }}" > ~/.ssh/repros.key
chmod 600 ~/.ssh/repros.key
cat >>~/.ssh/config <<-END
Host lance-repros
Host $${{matrix.host}}
HostName ${{matrix.host}}
User git
IdentityFile ~/.ssh/repros.key
StrictHostKeyChecking no
END
echo "Using key: ~/.ssh/repros.key"
ls -Rlah ~/.ssh/
ssh-keygen -l -f /home/runner/.ssh/repros.key
ssh-keyscan -H ${{matrix.host}} >> ~/.ssh/known_hosts
git remote add repros-lance git@${{matrix.host}}:qos
git push repros-lance HEAD
ssh-agent sh -c "ssh-add ~/.ssh/repros.key && git push repros-lance HEAD

0 comments on commit 1f5cc50

Please sign in to comment.