Skip to content

Add auth and user endpoints #5

Add auth and user endpoints

Add auth and user endpoints #5

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
SCRIPT_AFTER: |
cd ${{ secrets.TARGET_DIR }}
docker-compose up app-prod -d --build
docker system prune -af