Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroTochigi committed Sep 21, 2023
1 parent 9d3204d commit 8fd67d2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cloudbabbel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,10 @@ jobs:
if test ! -f "$checkSSH"; then
echo "Run 'ssh-keygen' first, with an empty passphrase for no passphrase. Missing ssh key." && exit 1
fi
echo $checkSSH
if [[ -f $keyPath/$publickey ]]
then
aws ec2 import-key-pair --key-name "$keyname" --public-key-material fileb://$checkSSH
sudo aws ec2 import-key-pair --key-name "$keyname" --public-key-material fileb://$checkSSH
else
echo 'ssh key pair ($keyPath/$publickey) do not exist $keyPath/$publickey'
echo 'Please generate the ssh key by the commad "ssh-keygen -t rsa"'
Expand Down

0 comments on commit 8fd67d2

Please sign in to comment.