Skip to content

Fix bug on enterTournament endpoint #36

Fix bug on enterTournament endpoint

Fix bug on enterTournament endpoint #36

Workflow file for this run

name: Deploy-to-EC2
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy to EC2
runs-on: ubuntu-latest
steps:
- name: Checkout the files
uses: actions/checkout@v2
- name: Deploy to server
uses: easingthemes/ssh-deploy@main
env:
SSH_PRIVATE_KEY: ${{ secrets.EC2_SSH_KEY }}
REMOTE_HOST: ${{ secrets.HOST_DNS }}
REMOTE_USER: ${{ secrets.USERNAME }}
TARGET: ${{ secrets.TARGET_DIR }}
ARGS: --delete
EXCLUDE: "prod.env, dev.env"
SCRIPT_AFTER: |
cd ${{ secrets.TARGET_DIR }}
sudo docker-compose build --no-cache app-prod
sudo docker-compose up -d app-prod
sudo docker system prune -af