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 7d544ce commit 8d87a66
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ jobs:
username: ${{ secrets.SERVER_SSH_USERNAME }}
key: ${{ secrets.SERVER_SSH_KEY }}
script: |
docker pull cliuzy1/gridape:v1
# Pull the latest image
docker pull ***/gridape:v1
# Stop and remove the existing container
docker stop gridape || true
docker rm gridape || true
docker run -d --name gridape -p 3000:80 ***/gridape:v1
# Run the new container with proper image reference
docker run -d \
--name gridape \
-p 3000:80 \
***/gridape:v1

0 comments on commit 8d87a66

Please sign in to comment.