@@ -2,9 +2,9 @@ name: CI/CD Pipeline
22
33on :
44 push :
5- branches : [ main, master ]
5+ branches : [ dev, main, master ]
66 pull_request :
7- branches : [ main, master ]
7+ branches : [ dev, main, master ]
88
99env :
1010 DOCKER_REGISTRY : ccr.ccs.tencentyun.com
@@ -17,20 +17,20 @@ jobs:
1717 runs-on : ubuntu-latest
1818 steps :
1919 - uses : actions/checkout@v4
20-
20+
2121 - name : Set up JDK 17
2222 uses : actions/setup-java@v4
2323 with :
2424 java-version : ' 17'
2525 distribution : ' temurin'
2626 cache : ' maven'
27-
27+
2828 - name : Initialize Maven project with flatten plugin
2929 run : mvn flatten:flatten
30-
30+
3131 - name : Build with Maven
3232 run : mvn clean package -DskipTests -Pprod
33-
33+
3434 - name : Upload Artifacts
3535 uses : actions/upload-artifact@v4
3636 with :
@@ -43,65 +43,65 @@ jobs:
4343 runs-on : ubuntu-latest
4444 steps :
4545 - uses : actions/checkout@v4
46-
46+
4747 - name : Download Artifacts
4848 uses : actions/download-artifact@v4
4949 with :
5050 name : jar-files
5151 path : .
52-
52+
5353 - name : Set up Docker Buildx
5454 uses : docker/setup-buildx-action@v3
55-
55+
5656 - name : Login to Tencent Cloud Container Registry
5757 uses : docker/login-action@v3
5858 with :
5959 registry : ${{ env.DOCKER_REGISTRY }}
6060 username : ${{ secrets.DOCKER_REGISTRY_USERNAME }}
6161 password : ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
62-
62+
6363 - name : Build and push im-gateway
6464 uses : docker/build-push-action@v5
6565 with :
6666 context : ./im-gateway
6767 push : true
6868 tags : ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_NAMESPACE }}/im-gateway:${{ github.sha }}
69-
69+
7070 - name : Build and push ruoyi-auth
7171 uses : docker/build-push-action@v5
7272 with :
7373 context : ./framework/ruoyi-auth
7474 push : true
7575 tags : ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_NAMESPACE }}/ruoyi-auth:${{ github.sha }}
76-
76+
7777 - name : Build and push ruoyi-system
7878 uses : docker/build-push-action@v5
7979 with :
8080 context : ./framework/ruoyi-modules/ruoyi-system
8181 push : true
8282 tags : ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_NAMESPACE }}/ruoyi-system:${{ github.sha }}
83-
83+
8484 - name : Build and push ruoyi-gen
8585 uses : docker/build-push-action@v5
8686 with :
8787 context : ./framework/ruoyi-modules/ruoyi-gen
8888 push : true
8989 tags : ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_NAMESPACE }}/ruoyi-gen:${{ github.sha }}
90-
90+
9191 - name : Build and push ruoyi-job
9292 uses : docker/build-push-action@v5
9393 with :
9494 context : ./framework/ruoyi-modules/ruoyi-job
9595 push : true
9696 tags : ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_NAMESPACE }}/ruoyi-job:${{ github.sha }}
97-
97+
9898 - name : Build and push ruoyi-resource
9999 uses : docker/build-push-action@v5
100100 with :
101101 context : ./framework/ruoyi-modules/ruoyi-resource
102102 push : true
103103 tags : ${{ env.DOCKER_REGISTRY }}/${{ env.DOCKER_NAMESPACE }}/ruoyi-resource:${{ github.sha }}
104-
104+
105105 - name : Build and push im-core-server
106106 uses : docker/build-push-action@v5
107107 with :
@@ -122,4 +122,4 @@ jobs:
122122 secret : ${{ github.token }}
123123 approvers : your-github-username
124124 minimum-approvals : 1
125- exclude-authors : github-actions[bot]
125+ exclude-authors : github-actions[bot]
0 commit comments