Skip to content

Commit

Permalink
hide output of workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jchua99 committed Jan 30, 2024
1 parent e3614b2 commit 0f20e79
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/openyurt-unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
GO111MODULE: on

jobs:
main-unit-test:
openyurt-unit-test:
runs-on: ubuntu-latest

steps:
Expand Down
12 changes: 5 additions & 7 deletions scripts/openyurt-deployer/setup_and_run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,24 @@

echo "PermitRootLogin=yes" | sudo tee -a /etc/ssh/sshd_config

echo $USER

sudo apt-get update
sudo apt-get install -y openssh-server
sudo apt-get update -qq
sudo apt-get install -qq -y openssh-server
sudo service ssh start
eval "$(ssh-agent -s)"

ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N ""
ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -N "" > /dev/null
cat > ~/.ssh/config <<EOF
Host host.example
User runner
HostName localhost
IdentityFile ~/.ssh/id_rsa
EOF

echo -n '' | cat - ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys
cat - ~/.ssh/id_rsa.pub > ~/.ssh/authorized_keys

sudo service ssh restart
service ssh status

# add private key
ssh-add ~/.ssh/id_rsa

cat ~/.ssh/authorized_keys
Expand Down

0 comments on commit 0f20e79

Please sign in to comment.