Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ezeanyimhenry authored Feb 18, 2025
1 parent 7463961 commit 6c54597
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,16 @@ jobs:
username: ${{ secrets.SERVER_SSH_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
# Pull the latest image
docker pull cliuzy1/gridape:v1
# Stop and remove the existing container
docker stop gridape || true
docker rm gridape || true
# Run the new container with proper image reference
docker run -d \
--name gridape \
-p 3000:80 \
-p 3000:3000 \
-e PORT=3000 \
-e HOSTNAME="0.0.0.0" \
-e NEXT_PUBLIC_API_URL="http://147.93.86.12:3000" \
--restart unless-stopped \
cliuzy1/gridape:v1
# Verify deployment
Expand Down

0 comments on commit 6c54597

Please sign in to comment.