enables docker #11
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
name: Deploy Application | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- cicd | |
pull_request: | |
branches: | |
- cicd | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Deploy React and Express App | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.DROPLET_IP }} | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
username: ${{ secrets.SSH_USER }} | |
script: | | |
pwd | |
hostname | |
cd 4-final-project-group-bill-splitting-app | |
git pull origin master | |
# docker-compose down | |
# docker-compose up --build -d | |
# git pull | |
# cd front-end | |
# npm install | |
# npm start | |
# cd ../back-end | |
# npm install | |
# npm start | |
# echo 'Success' |