mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-04 13:39:01 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			332 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			332 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/env bash
 | 
						|
 | 
						|
set -e  # Fail on any command error
 | 
						|
 | 
						|
VERSION=`jq -r ".version" package.json`
 | 
						|
SERIES=${VERSION:0:4}-latest
 | 
						|
 | 
						|
sudo docker build -t triliumnext/notes:$VERSION --network host -t triliumnext/notes:$SERIES .
 | 
						|
 | 
						|
if [[ $VERSION != *"beta"* ]]; then
 | 
						|
  sudo docker tag triliumnext/notes:$VERSION triliumnext/notes:latest
 | 
						|
fi
 |