mirror of
				https://github.com/docker/compose.git
				synced 2025-10-31 03:03:49 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			334 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			334 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| 
 | |
| set -e
 | |
| 
 | |
| if [ -z "$1" ]; then
 | |
|     >&2 echo "First argument must be image tag."
 | |
|     exit 1
 | |
| fi
 | |
| 
 | |
| TAG=$1
 | |
| VERSION="$(python setup.py --version)"
 | |
| 
 | |
| ./script/build/write-git-sha
 | |
| python setup.py sdist
 | |
| cp dist/docker-compose-$VERSION.tar.gz dist/docker-compose-release.tar.gz
 | |
| docker build -t docker/compose:$TAG -f Dockerfile.run .
 |