Skip to content

Commit fe0c2c0

Browse files
authored
fix: Alloy 설정파일이 배포시에 업로드 되지 않는 오류 수정 (#295)
* chore: alloy config 파일을 배포시에 전송하게 변경 * chore: alloy container 실행시 config 파일 위치 변경
1 parent 8a3885b commit fe0c2c0

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.github/workflows/dev-cd.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ jobs:
6262
source: "./docker-compose.dev.yml"
6363
target: "/home/${{ secrets.DEV_USERNAME }}/solid-connection-dev/"
6464

65+
- name: Copy alloy config file to remote
66+
uses: appleboy/scp-action@master
67+
with:
68+
host: ${{ secrets.DEV_HOST }}
69+
username: ${{ secrets.DEV_USERNAME }}
70+
key: ${{ secrets.DEV_PRIVATE_KEY }}
71+
source: "./docs/config.alloy"
72+
target: "/home/${{ secrets.DEV_USERNAME }}/solid-connection-dev/"
73+
6574
- name: Run docker compose
6675
uses: appleboy/ssh-action@master
6776
with:

.github/workflows/prod-cd.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,16 @@ jobs:
6161
key: ${{ secrets.PRIVATE_KEY }}
6262
source: "./docker-compose.prod.yml"
6363
target: "/home/${{ secrets.USERNAME }}/solid-connect-server/"
64-
64+
65+
- name: Copy alloy config file to remote
66+
uses: appleboy/scp-action@master
67+
with:
68+
host: ${{ secrets.HOST }}
69+
username: ${{ secrets.USERNAME }}
70+
key: ${{ secrets.PRIVATE_KEY }}
71+
source: "./docs/config.alloy"
72+
target: "/home/${{ secrets.USERNAME }}/solid-connect-server/"
73+
6574
- name: Run docker compose
6675
uses: appleboy/ssh-action@master
6776
with:

docker-compose.dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ services:
4141
- "12345:12345"
4242
volumes:
4343
- ./logs:/var/log/spring
44-
- ./docs/config.alloy:/etc/alloy/config.alloy:ro
44+
- ./config.alloy:/etc/alloy/config.alloy:ro
4545
environment:
4646
- ALLOY_ENV=dev

docker-compose.prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ services:
4040
- "12345:12345"
4141
volumes:
4242
- ./logs:/var/log/spring
43-
- ./docs/config.alloy:/etc/alloy/config.alloy:ro
43+
- ./config.alloy:/etc/alloy/config.alloy:ro
4444
environment:
4545
- ALLOY_ENV=production

0 commit comments

Comments
 (0)