Skip to content

Commit d22a71b

Browse files
committed
chore: 배포에서 password가 아닌 key를 사용하도록 변경
1 parent 125fdef commit d22a71b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/deploy.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
with:
4343
host: ${{ secrets.SSH_IP }}
4444
username: ${{ secrets.SSH_USERNAME }}
45-
password: ${{ secrets.SSH_PASSWORD }}
45+
key: ${{ secrets.SSH_KEY }}
4646
source: 'docker-compose.yml'
4747
target: 'compose'
4848
rm: true
@@ -58,7 +58,7 @@ jobs:
5858
with:
5959
host: ${{ secrets.SSH_IP }}
6060
username: ${{ secrets.SSH_USERNAME }}
61-
password: ${{ secrets.SSH_PASSWORD }}
61+
key: ${{ secrets.SSH_KEY }}
6262
envs: SPRING_DATABASE_SCHEMA,SPRING_DATABASE_USERNAME,SPRING_DATABASE_PASSWORD,SPRING_DATABASE_HOST,REDIS_HOST
6363
script: |
6464
cd compose
@@ -71,6 +71,6 @@ jobs:
7171
SPRING_DATABASE_HOST=$SPRING_DATABASE_HOST
7272
REDIS_HOST=$REDIS_HOST" | sudo tee .env
7373
74-
sudo docker pull ${{ secrets.DOCKERHUB_USERNAME }}/concoder-server:latest
75-
sudo docker compose down
76-
sudo docker-compose up -d
74+
docker pull ${{ secrets.DOCKERHUB_USERNAME }}/concoder-server:latest
75+
docker-compose down
76+
docker-compose up -d

0 commit comments

Comments
 (0)