Skip to content

Update README.md

Update README.md #87

Workflow file for this run

name: frontend-cd
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deployment
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
if [ -d repo ]; then
cd repo
docker compose down
cd ..
fi
git clone https://github.com/${{ github.repository }} repo-tmp --depth=1
mkdir -p repo
cp -r repo-tmp/* repo/
rm -rf repo-tmp
cd repo
echo NEXT_PUBLIC_BACKEND_HOST=${{ vars.BACKEND_HOST }} > frontend/.env.local
docker compose up --build -d