Skip to content

Commit

Permalink
update cd script
Browse files Browse the repository at this point in the history
  • Loading branch information
an920107 committed Nov 10, 2024
1 parent cb1f65c commit 0054089
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/frontend-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ jobs:
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
script: |
if [ -d repo ]; then
cd repo
docker compose down
fi
cd ..
tar -czf "repo_$(date +%s).tar.gz" repo
echo "${{ secrets.SSH_PASSWORD }}" sudo -S rm -rf repo
git clone https://github.com/${{ github.repository }} repo --depth=1
cd repo
echo NEXT_PUBLIC_BACKEND_HOST=${{ vars.BACKEND_HOST }} > frontend-v2/.env.local
docker compose down
docker compose up --build -d

0 comments on commit 0054089

Please sign in to comment.