Skip to content

Commit

Permalink
Set PATH and GOROOT before building
Browse files Browse the repository at this point in the history
  • Loading branch information
pskrbasu committed Sep 26, 2022
1 parent af1ce21 commit 721eaf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/buildimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ jobs:
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
# ssh into the instance and run the set of commands to build
ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'cat test.txt; uname -m; cd steampipe-postgres-fdw; git checkout main; git pull; git checkout $VERSION; rm -rf build-Linux; ./build.sh; exit 0'
ssh -o StrictHostKeyChecking=accept-new -i private_key ubuntu@$public_ip 'cat test.txt; uname -m; export GOROOT=/usr/local/go; export PATH=$GOPATH/bin:$GOROOT/bin:$PATH; go version; cd steampipe-postgres-fdw; git fetch; git checkout $VERSION; rm -rf build-Linux; ./build.sh; exit 0'
# 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 721eaf9

Please sign in to comment.