Add new indexer (#2681)
This commit is contained in:
		
							parent
							
								
									9dedcd07b6
								
							
						
					
					
						commit
						d062ce73d7
					
				
							
								
								
									
										17
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										17
									
								
								.github/workflows/build.yml
									
									
									
									
										vendored
									
									
								
							| @ -123,18 +123,11 @@ jobs: | |||||||
|       - name: 'Upload artifacts to update server' |       - name: 'Upload artifacts to update server' | ||||||
|         if: ${{ !github.event.pull_request.head.repo.fork }} |         if: ${{ !github.event.pull_request.head.repo.fork }} | ||||||
|         run: | |         run: | | ||||||
|           mkdir -p ~/.ssh |           FILES=$(for CUR in $(ls artifacts/); do echo "-F files=@artifacts/$CUR"; done) | ||||||
|           ssh-keyscan -p ${{ secrets.RSYNC_DEPLOY_PORT }} -H ${{ secrets.RSYNC_DEPLOY_HOST }} > ~/.ssh/known_hosts |           curl --fail -L -H "Token: ${{ secrets.INDEXER_TOKEN }}" \ | ||||||
|           echo "${{ secrets.RSYNC_DEPLOY_KEY }}" > deploy_key; |               -F "branch=${BRANCH_NAME}" \ | ||||||
|           chmod 600 ./deploy_key; |               ${FILES[@]} \ | ||||||
|           rsync -avzP --delete --mkpath \ |               "${{ secrets.INDEXER_URL }}"/firmware/uploadfiles | ||||||
|               -e 'ssh -p ${{ secrets.RSYNC_DEPLOY_PORT }} -i ./deploy_key' \ |  | ||||||
|               artifacts/ ${{ secrets.RSYNC_DEPLOY_USER }}@${{ secrets.RSYNC_DEPLOY_HOST }}:"${{ secrets.RSYNC_DEPLOY_BASE_PATH }}${BRANCH_NAME}/"; |  | ||||||
|           rm ./deploy_key; |  | ||||||
| 
 |  | ||||||
|       - name: 'Trigger update server reindex' |  | ||||||
|         if: ${{ !github.event.pull_request.head.repo.fork }} |  | ||||||
|         run: curl -X POST -F 'key=${{ secrets.REINDEX_KEY }}' ${{ secrets.REINDEX_URL }} |  | ||||||
| 
 | 
 | ||||||
|       - name: 'Find Previous Comment' |       - name: 'Find Previous Comment' | ||||||
|         if: ${{ !github.event.pull_request.head.repo.fork && github.event.pull_request }} |         if: ${{ !github.event.pull_request.head.repo.fork && github.event.pull_request }} | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								.github/workflows/reindex.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.github/workflows/reindex.yml
									
									
									
									
										vendored
									
									
								
							| @ -11,4 +11,5 @@ jobs: | |||||||
|     steps: |     steps: | ||||||
|       - name: Trigger reindex |       - name: Trigger reindex | ||||||
|         run: | |         run: | | ||||||
|           curl -X POST -F 'key=${{ secrets.REINDEX_KEY }}' ${{ secrets.REINDEX_URL }} |           curl --fail -L -H "Token: ${{ secrets.INDEXER_TOKEN }}" \ | ||||||
|  |               "${{ secrets.INDEXER_URL }}"/firmware/reindex | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Max Andreev
						Max Andreev