fix pathing
This commit is contained in:
		@@ -17,11 +17,11 @@ set -o pipefail
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
function process() {
 | 
					function process() {
 | 
				
			||||||
	tag_prefix="$1"
 | 
						tag_prefix="$1"
 | 
				
			||||||
	subdir="$2"
 | 
						target="$2"
 | 
				
			||||||
	cache_option="$(grep -qF -e '--no-cache' <<< "$@" && echo "--no-cache" || echo "")"
 | 
						cache_option="$(grep -qF -e '--no-cache' <<< "$@" && echo "--no-cache" || echo "")"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	docker rmi "$repository:$tag_prefix${SUFFIX}" || true
 | 
						docker rmi "$repository:$tag_prefix${SUFFIX}" || true
 | 
				
			||||||
	docker build --target "$subdir" $cache_option -t "$repository:$tag_prefix${SUFFIX}" "$subdir/"
 | 
						docker build --target "$target" $cache_option -t "$repository:$tag_prefix${SUFFIX}" .
 | 
				
			||||||
	if "$PUSH"; then
 | 
						if "$PUSH"; then
 | 
				
			||||||
		docker push "$repository:$tag_prefix${SUFFIX}"
 | 
							docker push "$repository:$tag_prefix${SUFFIX}"
 | 
				
			||||||
	fi
 | 
						fi
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user