ci:优化 GitHub Actions 工作流中的变量使用 #45
| @ -80,19 +80,19 @@ jobs: | |||||||
|         uses: ${{env.JCNC_GITEA_URL}}/appleboy/scp-action@v1 |         uses: ${{env.JCNC_GITEA_URL}}/appleboy/scp-action@v1 | ||||||
|         with: |         with: | ||||||
|           host: ${{ env.INTERNAL_SERVER_HOST }} |           host: ${{ env.INTERNAL_SERVER_HOST }} | ||||||
|           port: $INTERNAL_SERVER_PROT |           port: ${{ env.INTERNAL_SERVER_PROT }} | ||||||
|           username: root |           username: root | ||||||
|           password: ${{ secrets.INTERNAL_SERVER_PASSWORD }} |           password: ${{ secrets.INTERNAL_SERVER_PASSWORD }} | ||||||
|           source: $MAIN_COMPOSE_FILE |           source: ${{ env.MAIN_COMPOSE_FILE }} | ||||||
|           target: "/home/luke/deploy/llmx/" |           target: "/home/luke/deploy/llmx/" | ||||||
|       - name: 📦 Copy Compose File to Singapore Server |       - name: 📦 Copy Compose File to Singapore Server | ||||||
|         uses: ${{env.JCNC_GITEA_URL}}/appleboy/scp-action@v1 |         uses: ${{env.JCNC_GITEA_URL}}/appleboy/scp-action@v1 | ||||||
|         with: |         with: | ||||||
|           host: $SINGAPORE_SERVER_HOST |           host: ${{ env.SINGAPORE_SERVER_HOST }} | ||||||
|           port: $SSH_PROT |           port: ${{ env.SSH_PROT }} | ||||||
|           username: root |           username: root | ||||||
|           password: ${{ secrets.SINGAPORE_SERVER_PASSWORD }} |           password: ${{ secrets.SINGAPORE_SERVER_PASSWORD }} | ||||||
|           source: $AGENT_COMPOSE_FILE |           source: ${{ env.AGENT_COMPOSE_FILE }} | ||||||
|           target: "/home/deploy/llmx/" |           target: "/home/deploy/llmx/" | ||||||
|       # ========== 5. 构建阶段 ========== |       # ========== 5. 构建阶段 ========== | ||||||
|       - name: 🏗️ Build with Jib |       - name: 🏗️ Build with Jib | ||||||
| @ -157,8 +157,8 @@ jobs: | |||||||
|       - name: ✈️ Deploy on Internal Server |       - name: ✈️ Deploy on Internal Server | ||||||
|         uses: ${{env.JCNC_GITEA_URL}}/appleboy/ssh-action@v1 |         uses: ${{env.JCNC_GITEA_URL}}/appleboy/ssh-action@v1 | ||||||
|         with: |         with: | ||||||
|           host: $INTERNAL_SERVER_HOST |           host: ${{ env.INTERNAL_SERVER_HOST }} | ||||||
|           port: $INTERNAL_SERVER_PROT |           port: ${{ env.INTERNAL_SERVER_PROT }} | ||||||
|           username: root |           username: root | ||||||
|           password: ${{ secrets.INTERNAL_SERVER_PASSWORD }} |           password: ${{ secrets.INTERNAL_SERVER_PASSWORD }} | ||||||
|           script: | |           script: | | ||||||
| @ -192,8 +192,8 @@ jobs: | |||||||
|       - name: ✈️ Deploy on Internal Server |       - name: ✈️ Deploy on Internal Server | ||||||
|         uses: ${{env.JCNC_GITEA_URL}}/appleboy/ssh-action@v1 |         uses: ${{env.JCNC_GITEA_URL}}/appleboy/ssh-action@v1 | ||||||
|         with: |         with: | ||||||
|           host: $SINGAPORE_SERVER_HOST |           host: ${{ env.SINGAPORE_SERVER_HOST }} | ||||||
|           port: $SSH_PROT |           port: ${{ env.SSH_PROT }} | ||||||
|           username: root |           username: root | ||||||
|           password: ${{ secrets.SINGAPORE_SERVER_PASSWORD }} |           password: ${{ secrets.SINGAPORE_SERVER_PASSWORD }} | ||||||
|           script: | |           script: | | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user