Skip to content

Commit

Permalink
mod:: PORT 변경에 따른 yml파일 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
Devheun committed Jul 24, 2024
1 parent 17c53ca commit 9726d91
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: ['develop']

env:
DOCKER_IMAGE: ghcr.io/devheun/ku-key
DOCKER_CONTAINER: ku-key
DOCKER_IMAGE: ghcr.io/devheun/new-kukey
DOCKER_CONTAINER: new-kukey

jobs:
build:
Expand Down Expand Up @@ -55,10 +55,11 @@ jobs:
echo "AWS_BUCKET_REGION=${{ secrets.AWS_BUCKET_REGION }}" >> .env.prod
echo "AWS_BUCKET_NAME=${{ secrets.AWS_BUCKET_NAME }}" >> .env.prod
echo "DEEPL_API_KEY=${{ secrets.DEEPL_API_KEY }}" >> .env.prod
echo "PORT=${{ secrets.PORT }}" >> .env.prod
cat .env.prod
- name: Run Docker
run: |
sudo docker stop ${{ env.DOCKER_CONTAINER }} && sudo docker rm ${{ env.DOCKER_CONTAINER }} && sudo docker rmi ${{ env.DOCKER_IMAGE }}:latest
sudo docker run --env-file ./.env.prod --platform linux/amd64 -d --name ${{ env.DOCKER_CONTAINER }} --network bridge -p 3000:3000 --restart always ${{ env.DOCKER_IMAGE }}:latest
sudo docker run --env-file ./.env.prod --platform linux/amd64 -d --name ${{ env.DOCKER_CONTAINER }} --network bridge -p ${{ secrets.PORT }}:${{ secrets.PORT }} --restart always ${{ env.DOCKER_IMAGE }}:latest

0 comments on commit 9726d91

Please sign in to comment.