Skip to content

Commit

Permalink
fix: 오타 수정 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Nov 19, 2023
1 parent 9b186fe commit 2589d45
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
ACTIVE_PROFILE: "prod"
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_IMAGE_NAME: ${{ secrets.DOCKERHUB_IMAGE_NAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}

permissions:
contents: read
Expand Down Expand Up @@ -47,15 +47,15 @@ jobs:
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: $DOCKER_USERNAME
password: $DOCKER_PASSWORD
username: $DOCKERHUB_USERNAME
password: $DOCKERHUB_PASSWORD

- name: Docker Build and push
uses: docker/build-push-action@v3
with:
context: ./
push: true
tags: $DOCKER_USERNAME/$DOCKERHUB_IMAGE_NAME:${{env.IMAGE_TAG}}
tags: $DOCKERHUB_USERNAME/$DOCKERHUB_IMAGE_NAME:${{env.IMAGE_TAG}}

deploy:
needs: build_and_push
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:
sudo docker stop $(sudo docker ps -a -q)
sudo docker rm $(sudo docker ps -a -q)
sudo docker rmi $(sudo docker images -q)
sudo docker pull $DOCKER_USERNAME/$DOCKERHUB_IMAGE_NAME:${{env.IMAGE_TAG}}
sudo docker pull $DOCKERHUB_USERNAME/$DOCKERHUB_IMAGE_NAME:${{env.IMAGE_TAG}}
sudo docker run --build -d \
--restart unless-stopped \
--name server \
Expand All @@ -107,7 +107,7 @@ jobs:
--log-opt awslogs-group=susu \
--log-opt awslogs-region=ap-northeast-2 \
--log-opt awslogs-stream=server \
$DOCKER_USERNAME/$DOCKERHUB_IMAGE_NAME:${{env.IMAGE_TAG}}
$DOCKERHUB_USERNAME/$DOCKERHUB_IMAGE_NAME:${{env.IMAGE_TAG}}
sudo docker system prune --all -f
- name: Remove IP FROM security group
Expand Down

0 comments on commit 2589d45

Please sign in to comment.