mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-03 01:23:53 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			303 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			303 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
. $(dirname $0)/util
 | 
						|
set -eu
 | 
						|
 | 
						|
output=$(mktemp -d -t buildx-output.XXXXXXXXXX)
 | 
						|
 | 
						|
buildxCmd build \
 | 
						|
  --target "update" \
 | 
						|
  --output "type=local,dest=$output" \
 | 
						|
  --file "./hack/dockerfiles/docs.Dockerfile" \
 | 
						|
  .
 | 
						|
 | 
						|
rm -rf ./docs/reference/*
 | 
						|
cp -R "$output"/out/* ./docs/
 | 
						|
rm -rf $output
 |