Skip to content

Commit

Permalink
[config] 배포 스크립트 수정 2
Browse files Browse the repository at this point in the history
- 서버가 많아짐에 따라 3개의 인스턴스에 나누어 배포
- 변경이 있는 모듈만 다시 배포하도록 작성
(테스트 2)
  • Loading branch information
jcw1031 committed Aug 25, 2024
1 parent 464c68e commit b15d931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dev-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
echo "$PRIVATE_KEY" > private_key && chmod 600 private_key
services=("cache" "advertisement" "coupon" "delivery-time" "restaurant")
for service in "${services[@]}"; do
if [[ "${{ needs.changes.outputs.$service }}" == 'true' ]]; then
if [[ "${{ needs.changes.outputs[format('{0}', service)] }}" == 'true' ]]; then
scp -o StrictHostKeyChecking=no -i private_key service/${service}-service/build/libs/*.jar ${USER}@${HOST}:~/${service}-service.jar
ssh -o StrictHostKeyChecking=no -i private_key ${USER}@${HOST} << EOF
pkill -f 'java -jar ${service}-service.jar' || true
Expand Down

0 comments on commit b15d931

Please sign in to comment.