Skip to content

Commit d8b4a08

Browse files
committed
use env version
1 parent 118db4b commit d8b4a08

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/buildimage.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ jobs:
278278
PRIVATE_KEY: ${{ secrets.AWS_PRIVATE_KEY }}
279279
run: |
280280
# echo $VERSION
281-
echo $VERSION
281+
echo ${{ github.event.inputs.version }}
282282
283283
# get public IP of the linux machine
284284
ip=$(dig +short myip.opendns.com @resolver1.opendns.com)
@@ -310,12 +310,9 @@ jobs:
310310
311311
# set up the private key
312312
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
313-
314-
# echo $VERSION
315-
echo $VERSION
316313
317314
# ssh into the instance and run the script to build the binary
318-
ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'bash -s' < script_to_build.sh $VERSION
315+
ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'bash -s' < script_to_build.sh ${{ github.event.inputs.version }}
319316
320317
# use scp to fetch the built binary out of the instance
321318
scp -i private_key ubuntu@$public_ip:/home/ubuntu/steampipe-postgres-fdw/build-Linux/steampipe_postgres_fdw.so .

0 commit comments

Comments
 (0)