Created
April 11, 2022 06:11
-
-
Save radimih/cc928abcb403d6cfb59a7d478e7978f4 to your computer and use it in GitHub Desktop.
Значение аргумента в зависимости от значения другого аргумента
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Если задан build-аргумент CICD (любое непустое значение), то брать .NET-образы | |
# из зеркала Docker Registry (Nexus), иначе из Microsoft Container Registry | |
ARG CICD | |
ARG DOTNET_MIRROR_REGISTRY=${CICD:+dotnet} | |
ARG DOTNET_DOCKER_REGISTRY=${DOTNET_MIRROR_REGISTRY:-mcr.microsoft.com/dotnet} | |
#------------------------------------------------------------------------------- | |
FROM ${DOTNET_DOCKER_REGISTRY}/sdk:5.0 AS build | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment