fix: change server port #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deploy app | |
name: Deploy | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 2 | |
steps: | |
- name: Deploy using ssh | |
uses: appleboy/[email protected] | |
with: | |
host: ${{ secrets.HOST }} | |
username: ${{ secrets.USERNAME }} | |
key: ${{ secrets.PRIVATE_KEY }} | |
port: ${{ secrets.PORT }} | |
command_timeout: 5m | |
script: | | |
cd ~/repos/websocket/server/ | |
git pull origin main | |
git status | |
if [ $(docker ps -q -f name=websocket-chat) ]; then | |
docker-compose down | |
fi | |
docker compose build | |
docker compose up -d |