Skip to content

chore: πŸ” 42 client secret κ°±μ‹  #170

chore: πŸ” 42 client secret κ°±μ‹ 

chore: πŸ” 42 client secret κ°±μ‹  #170

Workflow file for this run

name: CI/CD
on:
push:
branches:
- dev
jobs:
CD-dev:
name: develop
if: github.ref == 'refs/heads/dev'
runs-on: ubuntu-latest
# needs: CI
steps:
- name: Deploy to Dev EC2
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.EC2_DEV_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
echo "move to repository"
cd $HOME/42Stat-Backend
echo "pull"
git pull origin dev
echo "env update"
git submodule update --remote
echo "run docker"
docker-compose -f docker-compose.dev.yml down -v
docker-compose -f docker-compose.dev.yml up -d