Skip to content

Commit

Permalink
feat: nginx pull 명령어 추가 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Nov 20, 2023
1 parent 3afe9b0 commit 247fb62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Set image tag from Output
run: echo "IMAGE_TAG=${{ needs.build-and-push.outputs.image_tag }}" >> $GITHUB_ENV
run: echo "IMAGE_TAG=${{ needs.build_and_push.outputs.image_tag }}" >> $GITHUB_ENV

- name: Get Public IP
id: publicip
Expand Down Expand Up @@ -90,6 +90,7 @@ jobs:
sudo docker rm $(sudo docker ps -a -q)
sudo docker rmi $(sudo docker images -q)
sudo docker pull $DOCKERHUB_USERNAME/$DOCKERHUB_IMAGE_NAME:${{env.IMAGE_TAG}}
sudo docker pull $DOCKERHUB_USERNAME/susu-nginx:0.0.1
sudo docker run --restart unless-stopped --name server --hostname server --env-file ~/susu/.env -e TZ=Asia/Seoul --expose 8080 --log-driver=awslogs --log-opt awslogs-group=susu --log-opt awslogs-region=ap-northeast-2 --log-opt awslogs-stream=server $DOCKERHUB_USERNAME/$DOCKERHUB_IMAGE_NAME:${{env.IMAGE_TAG}} -d
sudo docker run --name nginx --restart always -p 80:80 --depends-on server $DOCKERHUB_USERNAME/susu-nginx:0.0.1 -d
Expand Down

0 comments on commit 247fb62

Please sign in to comment.