Skip to content

Commit

Permalink
๐Ÿš€ deploy : deploy.yml
Browse files Browse the repository at this point in the history
- Deploy to AWS EC2์—์„œ ๋„์ปค ์ด๋ฏธ์ง€๋ฅผ ์‚ญ์ œํ•  ๋•Œ, ์ด๋ฆ„์„ ๊ธฐ๋ฐ˜์œผ๋กœ ์‚ญ์ œํ•˜๋„๋ก ์Šคํฌ๋ฆฝํŠธ ์ˆ˜์ •
  • Loading branch information
mon0mon committed Oct 13, 2023
1 parent 4dce47a commit 43f485f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ jobs:
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}:latest
sudo docker stop ${{ secrets.DOCKERHUB_REPOSITORY }} || true
sudo docker rm ${{ secrets.DOCKERHUB_REPOSITORY }} || true
docker rmi $(docker images -f=reference="${{ secrets.DOCKERHUB_USERNAME }}/${{ secrets.DOCKERHUB_REPOSITORY }}/*" -q) || true
docker rmi $(docker images -f=reference="*/${{ secrets.DOCKERHUB_REPOSITORY }}" -q) || true
sudo docker run -d -p 80:8080 -e SPRING_PROFILES_ACTIVE=prod \
--label io.portainer.accesscontrol.users=gjuser --restart unless-stopped \
--name ${{ secrets.DOCKERHUB_REPOSITORY }} \
Expand Down

0 comments on commit 43f485f

Please sign in to comment.