Skip to content

Commit

Permalink
modify ref
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu committed May 19, 2023
1 parent 049db96 commit 98383bd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/buildimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,11 @@ jobs:
AWS_DEFAULT_REGION: 'ap-south-1'
PRIVATE_KEY: ${{ secrets.AWS_PRIVATE_KEY }}
run: |
# echo $VERSION
echo ${{ github.event.ref }}
# echo $ref
ref=${{ github.event.ref }}
# echo tag
tag=$(echo "$ref" | sed 's/.*\///')
# get public IP of the linux machine
ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
Expand Down Expand Up @@ -312,7 +315,7 @@ jobs:
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
# ssh into the instance and run the script to build the binary
ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'bash -s' < script_to_build.sh ${{ github.event.ref }}
ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'bash -s' < script_to_build.sh $tag
# use scp to fetch the built binary out of the instance
scp -i private_key ubuntu@$public_ip:/home/ubuntu/steampipe-postgres-fdw/build-Linux/steampipe_postgres_fdw.so .
Expand Down

0 comments on commit 98383bd

Please sign in to comment.