Skip to content

Try out new Docker build for deploy #53

Try out new Docker build for deploy

Try out new Docker build for deploy #53

Workflow file for this run

name: Deploy
on:
push:
branches:
- *

Check failure on line 6 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
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.20.6
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
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 better-deploy
git checkout FETCH_HEAD
docker compose -f docker-compose.yml build
docker compose -f docker-compose.yml up -d