|
1 | | -name: "[STAGE] Build Gradle and Deploy" |
| 1 | +name: "[DEV] Build Gradle and Deploy" |
2 | 2 |
|
3 | 3 | on: |
4 | 4 | push: |
5 | | - branches: [ "release" ] |
| 5 | + branches: [ "develop" ] |
6 | 6 | workflow_dispatch: |
7 | 7 |
|
8 | 8 | jobs: |
@@ -38,38 +38,47 @@ jobs: |
38 | 38 | - name: Copy jar file to remote |
39 | 39 | uses: appleboy/scp-action@master |
40 | 40 | with: |
41 | | - host: ${{ secrets.STAGE_HOST }} |
42 | | - username: ${{ secrets.STAGE_USERNAME }} |
43 | | - key: ${{ secrets.STAGE_PRIVATE_KEY }} |
| 41 | + host: ${{ secrets.DEV_HOST }} |
| 42 | + username: ${{ secrets.DEV_USERNAME }} |
| 43 | + key: ${{ secrets.DEV_PRIVATE_KEY }} |
44 | 44 | source: "./build/libs/*.jar" |
45 | | - target: "/home/${{ secrets.STAGE_USERNAME }}/solid-connect-stage/" |
| 45 | + target: "/home/${{ secrets.DEV_USERNAME }}/solid-connection-dev/" |
46 | 46 |
|
47 | 47 | - name: Copy docker file to remote |
48 | 48 | uses: appleboy/scp-action@master |
49 | 49 | with: |
50 | | - host: ${{ secrets.STAGE_HOST }} |
51 | | - username: ${{ secrets.STAGE_USERNAME }} |
52 | | - key: ${{ secrets.STAGE_PRIVATE_KEY }} |
| 50 | + host: ${{ secrets.DEV_HOST }} |
| 51 | + username: ${{ secrets.DEV_USERNAME }} |
| 52 | + key: ${{ secrets.DEV_PRIVATE_KEY }} |
53 | 53 | source: "./Dockerfile" |
54 | | - target: "/home/${{ secrets.STAGE_USERNAME }}/solid-connect-stage/" |
| 54 | + target: "/home/${{ secrets.DEV_USERNAME }}/solid-connection-dev/" |
55 | 55 |
|
56 | 56 | - name: Copy docker compose file to remote |
57 | 57 | uses: appleboy/scp-action@master |
58 | 58 | with: |
59 | | - host: ${{ secrets.STAGE_HOST }} |
60 | | - username: ${{ secrets.STAGE_USERNAME }} |
61 | | - key: ${{ secrets.STAGE_PRIVATE_KEY }} |
62 | | - source: "./docker-compose.stage.yml" |
63 | | - target: "/home/${{ secrets.STAGE_USERNAME }}/solid-connect-stage/" |
| 59 | + host: ${{ secrets.DEV_HOST }} |
| 60 | + username: ${{ secrets.DEV_USERNAME }} |
| 61 | + key: ${{ secrets.DEV_PRIVATE_KEY }} |
| 62 | + source: "./docker-compose.dev.yml" |
| 63 | + target: "/home/${{ secrets.DEV_USERNAME }}/solid-connection-dev/" |
| 64 | + |
| 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/infra-config/config.alloy" |
| 72 | + target: "/home/${{ secrets.DEV_USERNAME }}/solid-connection-dev/" |
64 | 73 |
|
65 | 74 | - name: Run docker compose |
66 | 75 | uses: appleboy/ssh-action@master |
67 | 76 | with: |
68 | | - host: ${{ secrets.STAGE_HOST }} |
69 | | - username: ${{ secrets.STAGE_USERNAME }} |
70 | | - key: ${{ secrets.STAGE_PRIVATE_KEY }} |
| 77 | + host: ${{ secrets.DEV_HOST }} |
| 78 | + username: ${{ secrets.DEV_USERNAME }} |
| 79 | + key: ${{ secrets.DEV_PRIVATE_KEY }} |
71 | 80 | script_stop: true |
72 | 81 | script: | |
73 | | - cd /home/${{ secrets.STAGE_USERNAME }}/solid-connect-stage |
| 82 | + cd /home/${{ secrets.DEV_USERNAME }}/solid-connection-dev |
74 | 83 | docker compose down |
75 | | - docker compose -f docker-compose.stage.yml up -d --build |
| 84 | + docker compose -f docker-compose.dev.yml up -d --build |
0 commit comments