Try raw scp command

This commit is contained in:
Abdul Rabbani 2022-04-18 17:07:18 -04:00
parent 20b75ff18f
commit e924974ece

View File

@ -30,21 +30,19 @@ jobs:
run: | run: |
echo $GITHUB_REPOSITORY > /tmp/git_repository echo $GITHUB_REPOSITORY > /tmp/git_repository
echo $GITHUB_HEAD_REF > /tmp/git_head_ref echo $GITHUB_HEAD_REF > /tmp/git_head_ref
# echo ${{ env.GITHUB_REPOSITORY }} > /tmp/git_repository echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin /tmp/git_repository {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_repository
# echo ${{ env.GITHUB_HEAD_REF }} > /tmp/git_head_ref echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin /tmp/git_head_ref {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_head_ref
# echo ${{ env.BUILD_KEY }} | tr '\n' ''| sshpass -p ${{ env.BUILD_PASSWORD }} scp -i /dev/stdin /tmp/git_repository {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_repository echo ${{ env.BUILD_KEY }} | scp -i /dev/stdin ./github/workflows/run_unit_test.sh {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/run_unit_test.sh
# echo ${{ env.BUILD_KEY }} | tr '\n' ''| sshpass -p ${{ env.BUILD_PASSWORD }} scp -i /dev/stdin /tmp/git_head_ref {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/git_head_ref
# echo ${{ env.BUILD_KEY }} | tr '\n' ''| sshpass -p ${{ env.BUILD_PASSWORD }} scp -i /dev/stdin ./github/workflows/run_unit_test.sh {{ env.BUILD_USERNAME }}@${{ env.BUILD_HOSTNAME }}:/tmp/run_unit_test.sh
- name: SCP some files #- name: SCP some files
uses: appleboy/scp-action@master # uses: appleboy/scp-action@master
with: # with:
host: ${{ env.BUILD_HOSTNAME }} # host: ${{ env.BUILD_HOSTNAME }}
username: ${{ env.BUILD_USERNAME }} # username: ${{ env.BUILD_USERNAME }}
key: ${{ env.BUILD_KEY }} # key: ${{ env.BUILD_KEY }}
port: 22 # port: 22
source: "/tmp/git_repository,/tmp/git_head_ref,./github/workflows/run_unit_test.sh" # source: "/tmp/git_repository,/tmp/git_head_ref,./github/workflows/run_unit_test.sh"
target: "/tmp/" # target: "/tmp/"
- name: Trigger Unit Test - name: Trigger Unit Test
uses: appleboy/ssh-action@master uses: appleboy/ssh-action@master