Skip to content

Commit

Permalink
Update docker-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
joy-river authored Oct 8, 2024
1 parent 3126e10 commit 970df77
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,10 @@ jobs:
run: |
sudo docker network create kua_network || true
- name: Copy nginx.conf to EC2 directory
run: |
cp $GITHUB_WORKSPACE/nginx.conf /home/ubuntu/nginx.conf
- name: Run Django container
run: |
sudo docker run --env-file ./.env -d --name ${{ env.DOCKER_CONTAINER }} --network kua_network -p 8000:8000 --restart always ${{ env.DOCKER_IMAGE }}:latest
- name: Run Nginx container
run: |
sudo docker run -d --name nginx --network kua_network -p 80:80 --restart always -v /home/ubuntu/nginx.conf:/etc/nginx/nginx.conf nginx:latest
sudo docker run -d --name nginx --network kua_network -p 80:80 --restart always -v /home/ubuntu/actions-runner/_work/KUA_Back/KUA_Back/nginx.conf:/etc/nginx/nginx.conf nginx:latest

0 comments on commit 970df77

Please sign in to comment.