Skip to content

Commit

Permalink
[settings] 배포 관련 파일 수정 (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinkonu committed Jun 27, 2024
1 parent 5e9687b commit 05cc67d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/DOCKER-CI-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ jobs:
username: ${{ secrets.SERVER_USER }}
key: ${{ secrets.SERVER_KEY }}
script: |
sudo docker login -u ${{ secrets.DOCKER_LOGIN_USERNAME }} -p ${{ secrets.DOCKER_LOGIN_ACCESSTOKEN }}
sudo docker pull ${{ secrets.DOCKER_LOGIN_USERNAME }}/recordy
sudo chmod 777 /home/ubuntu/scripts/deploy.sh
/home/ubuntu/scripts/deploy.sh
Expand Down
4 changes: 2 additions & 2 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ IS_REDIS_EXIST=$(docker ps | grep redis)
if [ -z $IS_REDIS_EXIST ];then
echo "### REDIS ###"
echo ">>> pull redis image"
docker-compose pull redis
p docker compose pull redis
echo ">>> up redis container"
docker-compose up -d redis
docker compose up -d redis
fi

# green up
Expand Down

0 comments on commit 05cc67d

Please sign in to comment.