Skip to content

Update python-app.yml #21

Update python-app.yml

Update python-app.yml #21

Workflow file for this run

name: deploy
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
deploy-back:
runs-on: ubuntu-20.04
steps:
- name: Deploy
uses: appleboy/[email protected]
with:
host: '${{ secrets.HOST }}'
username: '${{ secrets.USER }}'
port: '${{ secrets.PORT }}'
password: '${{ secrets.PASS }}'
command_timeout: 200m
script: |
cd sad/MiniKafka
git checkout master
git pull origin master
cd broker
docker build -t minikafka:broker .
cd ../
docker compose up --build -d