build(Dockerfiles): Set the base registry via an ARG (#33712)
This commit is contained in:
		
							parent
							
								
									796187c1e8
								
							
						
					
					
						commit
						7ffda06b6a
					
				|  | @ -9,6 +9,7 @@ | |||
| # See: https://docs.docker.com/build/building/multi-platform/ | ||||
| ARG TARGETPLATFORM=${TARGETPLATFORM} | ||||
| ARG BUILDPLATFORM=${BUILDPLATFORM} | ||||
| ARG BASE_REGISTRY="docker.io" | ||||
| 
 | ||||
| # Ruby image to use for base image, change with [--build-arg RUBY_VERSION="3.4.x"] | ||||
| # renovate: datasource=docker depName=docker.io/ruby | ||||
|  | @ -19,9 +20,9 @@ ARG NODE_MAJOR_VERSION="22" | |||
| # 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 node | ||||
| FROM ${BASE_REGISTRY}/node:${NODE_MAJOR_VERSION}-${DEBIAN_VERSION}-slim AS node | ||||
| # Ruby image to use for base image based on combined variables (ex: 3.4.x-slim-bookworm) | ||||
| FROM docker.io/ruby:${RUBY_VERSION}-slim-${DEBIAN_VERSION} AS ruby | ||||
| FROM ${BASE_REGISTRY}/ruby:${RUBY_VERSION}-slim-${DEBIAN_VERSION} AS ruby | ||||
| 
 | ||||
| # Resulting version string is vX.X.X-MASTODON_VERSION_PRERELEASE+MASTODON_VERSION_METADATA | ||||
| # Example: v4.3.0-nightly.2023.11.09+pr-123456 | ||||
|  |  | |||
|  | @ -6,6 +6,7 @@ | |||
| # See: https://docs.docker.com/build/building/multi-platform/ | ||||
| ARG TARGETPLATFORM=${TARGETPLATFORM} | ||||
| ARG BUILDPLATFORM=${BUILDPLATFORM} | ||||
| ARG BASE_REGISTRY="docker.io" | ||||
| 
 | ||||
| # Node version to use in base image, change with [--build-arg NODE_MAJOR_VERSION="20"] | ||||
| # renovate: datasource=node-version depName=node | ||||
|  | @ -13,7 +14,7 @@ ARG NODE_MAJOR_VERSION="22" | |||
| # 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 ${BASE_REGISTRY}/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 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue