Skip to content

Commit

Permalink
fix: workflow 수정 #3
Browse files Browse the repository at this point in the history
  • Loading branch information
wjdtkdgns committed Nov 19, 2023
1 parent 41ca1fe commit 9b186fe
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/Deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
id: publicip
run: |
response=$(curl -s canhazip.com)
echo "ip='$response'" >> "$GITHUB_OUTPUT"
echo "ip='$response'" >> $GITHUB_OUTPUT
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
Expand Down Expand Up @@ -96,7 +96,18 @@ jobs:
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-compose -f ~//docker-compose.yml --env-file ~/susu/.env up --build -d
sudo docker run --build -d \
--restart unless-stopped \
--name server \
--hostname server \
--env-file .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 \
$DOCKER_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 9b186fe

Please sign in to comment.