mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-10-31 08:03:43 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			303 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			303 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/usr/bin/env bash
 | |
| 
 | |
| set -eu -o pipefail
 | |
| 
 | |
| : "${BUILDX_CMD=docker buildx}"
 | |
| : "${FORMATS=md}"
 | |
| 
 | |
| output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
 | |
| (set -x ; DOCS_FORMATS=$FORMATS ${BUILDX_CMD} bake --set "*.output=$output" update-docs)
 | |
| rm -rf ./docs/reference/*
 | |
| cp -R "$output"/out/* ./docs/
 | |
| rm -rf "$output"
 | 
