mirror of
				https://github.com/zokradonh/kopano-docker
				synced 2025-10-31 10:27:14 +00:00 
			
		
		
		
	change url for updateing readme (#302)
upstream pr at https://github.com/moikot/docker-tools/pull/1 Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
		
							parent
							
								
									8f1b634c35
								
							
						
					
					
						commit
						e06ae73240
					
				| @ -35,6 +35,7 @@ if [ -z "$image" ]; then | |||||||
| fi | fi | ||||||
| 
 | 
 | ||||||
| # below code is based on https://github.com/moikot/golang-dep/blob/aab3ea8462a19407544f1ce9daa11c3f0924394c/.travis/push.sh | # below code is based on https://github.com/moikot/golang-dep/blob/aab3ea8462a19407544f1ce9daa11c3f0924394c/.travis/push.sh | ||||||
|  | # code has since then moved to https://github.com/moikot/docker-tools.git | ||||||
| # | # | ||||||
| # Pushes README.md content to Docker Hub. | # Pushes README.md content to Docker Hub. | ||||||
| # | # | ||||||
| @ -53,8 +54,8 @@ push_readme() { | |||||||
| 	local code | 	local code | ||||||
| 	code=$(jq -n --arg msg "$(<"${readme}")" \ | 	code=$(jq -n --arg msg "$(<"${readme}")" \ | ||||||
| 		'{"registry":"registry-1.docker.io","full_description": $msg }' | \ | 		'{"registry":"registry-1.docker.io","full_description": $msg }' | \ | ||||||
| 			curl -s -o /dev/null  -L -w "%{http_code}" \ | 			curl -v -s -o /dev/null -L -w "%{http_code}" \ | ||||||
| 				https://cloud.docker.com/v2/repositories/"${image}"/ \ | 				https://hub.docker.com/v2/repositories/"${image}"/ \ | ||||||
| 				-d @- -X PATCH \ | 				-d @- -X PATCH \ | ||||||
| 				-H "Content-Type: application/json" \ | 				-H "Content-Type: application/json" \ | ||||||
| 				-H "Authorization: JWT ${token}") | 				-H "Authorization: JWT ${token}") | ||||||
| @ -70,7 +71,7 @@ push_readme() { | |||||||
| 	code=$(jq -n --arg msg "$(head -n 1 "${readme}" | cut -d' ' -f2-)" \ | 	code=$(jq -n --arg msg "$(head -n 1 "${readme}" | cut -d' ' -f2-)" \ | ||||||
| 		'{"registry":"registry-1.docker.io","description": $msg }' | \ | 		'{"registry":"registry-1.docker.io","description": $msg }' | \ | ||||||
| 			curl -s -o /dev/null -L -w "%{http_code}" \ | 			curl -s -o /dev/null -L -w "%{http_code}" \ | ||||||
| 				https://cloud.docker.com/v2/repositories/"${image}"/ \ | 				https://hub.docker.com/v2/repositories/"${image}"/ \ | ||||||
| 				-d @- -X PATCH \ | 				-d @- -X PATCH \ | ||||||
| 				-H "Content-Type: application/json" \ | 				-H "Content-Type: application/json" \ | ||||||
| 				-H "Authorization: JWT ${token}") | 				-H "Authorization: JWT ${token}") | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user