57
57
chmod 600 private_key
58
58
59
59
- name : 가게노출 서비스 배포
60
- if : steps.check_changes.outputs.restaurant-exposure == 'false '
60
+ if : steps.check_changes.outputs.restaurant-exposure == 'true '
61
61
env :
62
62
HOST : ${{ secrets.DEV_EC2_HOST1 }}
63
63
USER : ${{ secrets.DEV_EC2_USER }}
71
71
EOF
72
72
73
73
- name : 검색 서비스 배포
74
- if : steps.check_changes.outputs.search == 'false '
74
+ if : steps.check_changes.outputs.search == 'true '
75
75
env :
76
76
HOST : ${{ secrets.DEV_EC2_HOST2 }}
77
77
USER : ${{ secrets.DEV_EC2_USER }}
86
86
87
87
- name : 기타 서비스 배포
88
88
if : |
89
- steps.check_changes.outputs.cache == 'false ' ||
89
+ steps.check_changes.outputs.cache == 'true ' ||
90
90
steps.check_changes.outputs.advertisement == 'true' ||
91
91
steps.check_changes.outputs.coupon == 'true' ||
92
92
steps.check_changes.outputs.delivery-time == 'true' ||
95
95
HOST : ${{ secrets.DEV_EC2_HOST3 }}
96
96
USER : ${{ secrets.DEV_EC2_USER }}
97
97
run : |
98
- if [[ "${{ steps.check_changes.outputs.cache }}" == 'false ' ]]; then
98
+ if [[ "${{ steps.check_changes.outputs.cache }}" == 'true ' ]]; then
99
99
scp -o StrictHostKeyChecking=no -i private_key service/cache-service/build/libs/*.jar ${USER}@${HOST}:~/cache-service.jar
100
100
ssh -o StrictHostKeyChecking=no -i private_key ${USER}@${HOST} << EOF
101
101
pkill -f 'java -jar cache-service.jar' || true
@@ -104,7 +104,7 @@ jobs:
104
104
nohup java -jar cache-service.jar --spring.profiles.active=dev > cache-service.log 2>&1 &
105
105
EOF
106
106
fi
107
- if [[ "${{ steps.check_changes.outputs.advertisement }}" == 'false ' ]]; then
107
+ if [[ "${{ steps.check_changes.outputs.advertisement }}" == 'true ' ]]; then
108
108
scp -o StrictHostKeyChecking=no -i private_key service/advertisement-service/build/libs/*.jar ${USER}@${HOST}:~/advertisement-service.jar
109
109
ssh -o StrictHostKeyChecking=no -i private_key ${USER}@${HOST} << EOF
110
110
pkill -f 'java -jar advertisement-service.jar' || true
@@ -113,7 +113,7 @@ jobs:
113
113
nohup java -jar advertisement-service.jar --spring.profiles.active=dev > advertisement-service.log 2>&1 &
114
114
EOF
115
115
fi
116
- if [[ "${{ steps.check_changes.outputs.coupon }}" == 'false ' ]]; then
116
+ if [[ "${{ steps.check_changes.outputs.coupon }}" == 'true ' ]]; then
117
117
scp -o StrictHostKeyChecking=no -i private_key service/coupon-service/build/libs/*.jar ${USER}@${HOST}:~/coupon-service.jar
118
118
ssh -o StrictHostKeyChecking=no -i private_key ${USER}@${HOST} << EOF
119
119
pkill -f 'java -jar coupon-service.jar' || true
@@ -122,7 +122,7 @@ jobs:
122
122
nohup java -jar coupon-service.jar --spring.profiles.active=dev > coupon-service.log 2>&1 &
123
123
EOF
124
124
fi
125
- if [[ "${{ steps.check_changes.outputs.delivery-time }}" == 'false ' ]]; then
125
+ if [[ "${{ steps.check_changes.outputs.delivery-time }}" == 'true ' ]]; then
126
126
scp -o StrictHostKeyChecking=no -i private_key service/delivery-time-service/build/libs/*.jar ${USER}@${HOST}:~/delivery-time-service.jar
127
127
ssh -o StrictHostKeyChecking=no -i private_key ${USER}@${HOST} << EOF
128
128
pkill -f 'java -jar delivery-time-service.jar' || true
@@ -131,7 +131,7 @@ jobs:
131
131
nohup java -jar delivery-time-service.jar --spring.profiles.active=dev > delivery-time-service.log 2>&1 &
132
132
EOF
133
133
fi
134
- if [[ "${{ steps.check_changes.outputs.restaurant }}" == 'false ' ]]; then
134
+ if [[ "${{ steps.check_changes.outputs.restaurant }}" == 'true ' ]]; then
135
135
scp -o StrictHostKeyChecking=no -i private_key service/restaurant-service/build/libs/*.jar ${USER}@${HOST}:~/restaurant-service.jar
136
136
ssh -o StrictHostKeyChecking=no -i private_key ${USER}@${HOST} << EOF
137
137
pkill -f 'java -jar restaurant-service.jar' || true
0 commit comments