Skip to content

Commit

Permalink
📝 docs: deploy.sh 명 구분 #121
Browse files Browse the repository at this point in the history
  • Loading branch information
jun02160 committed Mar 2, 2024
1 parent 21922cf commit 9b03792
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/api-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ jobs:
host: ${{ secrets.RELEASE_SERVER_IP }}
username: ${{ secrets.RELEASE_SERVER_USER }}
key: ${{ secrets.RELEASE_SERVER_KEY }}
source: "./scripts/deploy.sh"
target: "/home/ubuntu/"
source: "./scripts/api/deploy.sh"
target: "/home/ubuntu/api-server/"

- name: docker-compose.yml EC2 인스턴스로 전송
uses: appleboy/scp-action@master
Expand All @@ -104,7 +104,7 @@ jobs:
script: |
cd ~
sudo docker pull yejunpark1/motivoo-api-server
sudo chmod 777 ./deploy.sh
cp ./scripts/deploy.sh ./deploy.sh
./deploy.sh
sudo chmod 777 ./api-server/deploy.sh
cp ./scripts/deploy-api.sh ./api-server/deploy.sh
./deploy-api.sh
docker image prune -f
10 changes: 5 additions & 5 deletions .github/workflows/batch-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ jobs:
host: ${{ secrets.RELEASE_SERVER_IP }}
username: ${{ secrets.RELEASE_SERVER_USER }}
key: ${{ secrets.RELEASE_SERVER_KEY }}
source: "./scripts/deploy.sh"
target: "/home/ubuntu/"
source: "./scripts/batch/deploy.sh"
target: "/home/ubuntu/batch-server/"

- name: docker-compose.yml EC2 인스턴스로 전송
uses: appleboy/scp-action@master
Expand All @@ -117,7 +117,7 @@ jobs:
script: |
cd ~
sudo docker pull yejunpark1/motivoo-batch-server
sudo chmod 777 ./deploy.sh
cp ./scripts/deploy.sh ./deploy.sh
./deploy.sh
sudo chmod 777 ./batch-server/deploy-batch.sh
cp ./scripts/deploy-batch.sh ./batch-server/deploy.sh
./deploy-batch.sh
docker image prune -f

0 comments on commit 9b03792

Please sign in to comment.