Skip to content

Commit

Permalink
Update push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
urielsalis authored Sep 4, 2024
1 parent 75286aa commit 5f0d625
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,18 @@ jobs:
echo Wait for bastion tunnel to open
az network bastion wait --created --name ${{ secrets.BASTION_NAME }} --resource-group ${{ secrets.RESOURCE_GROUP }} --debug
- run: |
sudo apt -y install rsync
ARGS="-avh --delete"
USERNAME=risa
SERVER_DESTINATION=/home/risa/r-isa
SSHPATH="$HOME/.ssh"
rm -rf "$SSHPATH"
mkdir "$SSHPATH"
echo "$DEPLOY_KEY" > "$SSHPATH/key"
chmod 600 "$SSHPATH/key"
echo Upload new libraries
FOLDER=build/install/risa/lib
sh -c "rsync $ARGS $GITHUB_WORKSPACE/$FOLDER [email protected]:$SERVER_DESTINATION"
sh -c "rsync $ARGS -e 'ssh -i $SSHPATH/key -o StrictHostKeyChecking=no -p 50022' $GITHUB_WORKSPACE/$FOLDER [email protected]:$SERVER_DESTINATION"
echo Upload new binaries
FOLDER=build/install/risa/bin
Expand Down

0 comments on commit 5f0d625

Please sign in to comment.