Skip to content

Commit

Permalink
modified docker container name
Browse files Browse the repository at this point in the history
  • Loading branch information
jakegodsall committed Jan 4, 2025
1 parent 25afbc3 commit ad61a30
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ jobs:
username: ${{ secrets.EC2_USERNAME }}
key: ${{ secrets.EC2_SSH_KEY }}
script: |
docker pull my-docker-repo/my-django-app:latest
docker stop django-app || true
docker rm django-app || true
docker run -d --name django-app -p 8000:8000 my-docker-repo/my-django-app:latest
IMAGE_NAME="${{ secrets.DOCKERHUB_USERNAME }}/django-portfolio"
docker pull $IMAGE_NAME:latest
docker stop portfolio || true
docker rm portfolio || true
docker run -d --name portfolio -p 8000:8000 $IMAGE_NAME:latest

0 comments on commit ad61a30

Please sign in to comment.