Skip to content

Commit 98383bd

Browse files
committed
modify ref
1 parent 049db96 commit 98383bd

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/buildimage.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,8 +277,11 @@ jobs:
277277
AWS_DEFAULT_REGION: 'ap-south-1'
278278
PRIVATE_KEY: ${{ secrets.AWS_PRIVATE_KEY }}
279279
run: |
280-
# echo $VERSION
281-
echo ${{ github.event.ref }}
280+
# echo $ref
281+
ref=${{ github.event.ref }}
282+
283+
# echo tag
284+
tag=$(echo "$ref" | sed 's/.*\///')
282285
283286
# get public IP of the linux machine
284287
ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
@@ -312,7 +315,7 @@ jobs:
312315
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
313316
314317
# ssh into the instance and run the script to build the binary
315-
ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'bash -s' < script_to_build.sh ${{ github.event.ref }}
318+
ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'bash -s' < script_to_build.sh $tag
316319
317320
# use scp to fetch the built binary out of the instance
318321
scp -i private_key ubuntu@$public_ip:/home/ubuntu/steampipe-postgres-fdw/build-Linux/steampipe_postgres_fdw.so .

0 commit comments

Comments
 (0)