Skip to content

Commit f06cb5f

Browse files
authored
Merge pull request #6 from Block-Guard/setting/#3/cicd
[Fix] deploy.yml 수정
2 parents ea26615 + 1739330 commit f06cb5f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
username: ${{ env.AWS_USER }}
4747
key: ${{ env.AWS_SSH_KEY }}
4848
script: |
49-
cd git-action-test/
50-
sed -i 's|image:.*|image: '"${{ env.DOCKER_REPO }}:latest"'|' docker-compose.yaml
51-
docker-compose down
52-
docker-compose pull
53-
docker-compose up -d
49+
docker stop Block-Guard-AI || true
50+
docker rm Block-Guard-AI || true
51+
52+
docker pull "${{ env.DOCKER_REPO }}:latest"
53+
docker run -d --name "Block-Guard-AI" -p 8000:8000 ${{ env.DOCKER_REPO }}:latest

0 commit comments

Comments
 (0)