Skip to content

Commit

Permalink
use the ssh-agent action
Browse files Browse the repository at this point in the history
and don't create the key ourselves
  • Loading branch information
jazzsequence committed Jul 26, 2023
1 parent ddfd037 commit 3ed5c3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .bin/set-up-globals.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ echo "LogLevel ERROR" >> ~/.ssh/config
# Set UserKnownHostsFile to /dev/null in ~/.ssh/config
echo "UserKnownHostsFile /dev/null" >> ~/.ssh/config
# Create the id_rsa file
echo "Creating the id_rsa file"
touch ~/.ssh/id_rsa
echo "$SSH_KEY" > ~/.ssh/id_rsa
# echo "Creating the id_rsa file"
# touch ~/.ssh/id_rsa
# echo "$SSH_KEY" > ~/.ssh/id_rsa
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ jobs:
run: ./.bin/set-up-globals.sh
- name: Install plugin
run: terminus self:plugin:install ${GITHUB_WORKSPACE}
- name: Install SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Functional Tests
run: composer functional
- name: Cleanup
Expand Down

0 comments on commit 3ed5c3e

Please sign in to comment.