Skip to content

Commit

Permalink
Update .github-actions.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
just-pthai-it authored Jul 16, 2024
1 parent a083403 commit f5c25c3
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/.github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,30 @@ jobs:
- run: echo "🍏 This job's status is ${{ job.status }}."
- run: echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER"
- run: echo "$DAY_OF_WEEK"
- run: echo "test" >> abc.txt
- run: cat abc.txt
# - run: ssh-agent -s
# - run: eval $(ssh-agent -s)
# - run: ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER")
# - name: Set up SSH agent
# uses: webfactory/[email protected]
# with:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY_LOCALCOMPUTER }}
- run: |
eval $(ssh-agent -s)
ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER")
mkdir -p ~/.ssh
ssh-keyscan -H $MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts
ssh $MY_VPS_USER@$MY_VPS_IP_ADDRESS << 'EOF'
whoami
ls
cd projects
ls
cd ESS-microservices
ls
# cd $MY_VPS_PROJECT_PATH
cat ~/.bashrc
. ~/.bashrc
ll
EOF
# - run: |
# eval $(ssh-agent -s)
# ssh-add <(echo "$SSH_PRIVATE_KEY_LOCALCOMPUTER")
# mkdir -p ~/.ssh
# ssh-keyscan -H $MY_VPS_IP_ADDRESS >> ~/.ssh/known_hosts
# ssh $MY_VPS_USER@$MY_VPS_IP_ADDRESS << 'EOF'
# whoami
# ls
# cd projects
# ls
# cd ESS-microservices
# ls
# # cd $MY_VPS_PROJECT_PATH
# cat ~/.bashrc
# . ~/.bashrc
# ll
# EOF
- run: echo "🍏 This job's status is ${{ job.status }}."

0 comments on commit f5c25c3

Please sign in to comment.