Merge pull request #4276 from mempool/knorrium/print_backend_sha_workflow
ops: Add workflow to print the backend info on all servers
This commit is contained in:
		
						commit
						a567f44b3c
					
				
							
								
								
									
										19
									
								
								.github/workflows/get_backend_hash.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								.github/workflows/get_backend_hash.yml
									
									
									
									
										vendored
									
									
										Normal file
									
								
							| @ -0,0 +1,19 @@ | ||||
| name: 'Print backend hashes' | ||||
| 
 | ||||
| on: [workflow_dispatch] | ||||
| 
 | ||||
| jobs: | ||||
|   print-backend-sha: | ||||
|     runs-on: 'ubuntu-latest' | ||||
|     name: Print backend hashes | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v3 | ||||
|         with: | ||||
|           path: repo | ||||
| 
 | ||||
|       - name: Run script | ||||
|         working-directory: repo | ||||
|         run: | | ||||
|           chmod +x ./scripts/get_backend_hash.sh | ||||
|           sh ./scripts/get_backend_hash.sh | ||||
							
								
								
									
										7
									
								
								scripts/get_backend_hash.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								scripts/get_backend_hash.sh
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,7 @@ | ||||
| for LOCATION in fmt va1 fra tk7 | ||||
| do | ||||
|   for NODE in 201 202 203 204 205 206 | ||||
|   do | ||||
|     echo $(curl -sk https://node$NODE.$LOCATION.mempool.space/api/v1/backend-info) | ||||
|   done | ||||
| done | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user