Skip to content

Commit

Permalink
Merge pull request #70 from vitessio/better-deploy
Browse files Browse the repository at this point in the history
Use Docker to deploy the vitess-bot
  • Loading branch information
frouioui authored Dec 19, 2023
2 parents 76fd163 + 3812214 commit 04cdfce
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,17 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.6
go-version: 1.21.5

- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
uses: fifsky/ssh-action@master
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
user: ${{ secrets.USERNAME }}
port: ${{ secrets.PORT }}
script: |
args: "-tt"
command: |
cd $HOME/vitess-bot
git reset --hard FETCH_HEAD
git clean -fd
Expand All @@ -32,4 +33,4 @@ jobs:
killall -9 vitess-bot
source ~/.profile
go build -o vitess-bot ./go
nohup ./vitess-bot &
nohup ./vitess-bot &

0 comments on commit 04cdfce

Please sign in to comment.