Skip to content

use proper SSH options #60

use proper SSH options

use proper SSH options #60

Workflow file for this run

name: Deploy
on:
push:
branches:
- better-deploy
jobs:
deploy:
if: ${{ github.repository_owner == 'vitessio' }}
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.5
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
env:
SSH_OPTIONS: "-tt"
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
port: ${{ secrets.PORT }}
script: |
cd $HOME/vitess-bot
git reset --hard FETCH_HEAD
git clean -fd
git fetch origin main
git checkout FETCH_HEAD
killall -9 vitess-bot
source ~/.profile
go build -o vitess-bot ./go
nohup ./vitess-bot &