Fix Docker buildx warnings about casing and undefined variables (#30798)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							637de63505
						
					
				
				
					commit
					4743657ba2
				
			@@ -13,7 +13,14 @@ ARG NODE_MAJOR_VERSION="20"
 | 
			
		||||
# Debian image to use for base image, change with [--build-arg DEBIAN_VERSION="bookworm"]
 | 
			
		||||
ARG DEBIAN_VERSION="bookworm"
 | 
			
		||||
# Node image to use for base image based on combined variables (ex: 20-bookworm-slim)
 | 
			
		||||
FROM docker.io/node:${NODE_MAJOR_VERSION}-${DEBIAN_VERSION}-slim as streaming
 | 
			
		||||
FROM docker.io/node:${NODE_MAJOR_VERSION}-${DEBIAN_VERSION}-slim AS streaming
 | 
			
		||||
 | 
			
		||||
# Resulting version string is vX.X.X-MASTODON_VERSION_PRERELEASE+MASTODON_VERSION_METADATA
 | 
			
		||||
# Example: v4.3.0-nightly.2023.11.09+pr-123456
 | 
			
		||||
# Overwrite existence of 'alpha.X' in version.rb [--build-arg MASTODON_VERSION_PRERELEASE="nightly.2023.11.09"]
 | 
			
		||||
ARG MASTODON_VERSION_PRERELEASE=""
 | 
			
		||||
# Append build metadata or fork information to version.rb [--build-arg MASTODON_VERSION_METADATA="pr-123456"]
 | 
			
		||||
ARG MASTODON_VERSION_METADATA=""
 | 
			
		||||
 | 
			
		||||
# Timezone used by the Docker container and runtime, change with [--build-arg TZ=Europe/Berlin]
 | 
			
		||||
ARG TZ="Etc/UTC"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user