Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ jobs:
echo "Pulling latest changes..."
git pull origin ${{ github.ref_name }}

if [[ "${{ github.ref}}" == "refs/heads/main" ]]; then
echo "NEXT_PUBLIC_BACKEND_HOST=https://api.musiccpr.org" >> .env.production
echo "NEXTAUTH_URL=https://musiccpr.org" >> .env.production
fi

echo "Stopping and removing old container"
docker stop ${{ env.CONTAINER_NAME }}|| true
docker rm ${{ env.CONTAINER_NAME }}|| true
Expand Down