mirror of
https://github.com/bloomberg/goldpinger.git
synced 2026-02-14 09:59:50 +00:00
Use full imags base name as ARG
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
ARG NANOSERVER_VERSION=ltcs2022
|
||||
ARG WINDOWS_BASE_IMAGE=mcr.microsoft.com/windows/nanoserver:ltcs2022
|
||||
|
||||
FROM --platform=$BUILDPLATFORM golang:1.21 as builder
|
||||
ARG TARGETARCH
|
||||
@@ -22,7 +22,7 @@ COPY ./static /static
|
||||
COPY ./config /config
|
||||
ENTRYPOINT ["/goldpinger", "--static-file-path", "/static"]
|
||||
|
||||
FROM mcr.microsoft.com/windows/nanoserver:$NANOSERVER_VERSION AS windows
|
||||
FROM $WINDOWS_BASE_IMAGE AS windows
|
||||
COPY --from=builder /w/bin/goldpinger /goldpinger.exe
|
||||
COPY ./static /static
|
||||
COPY ./config /config
|
||||
|
||||
@@ -35,7 +35,7 @@ target "windows-nanoserver-ltsc2019" {
|
||||
|
||||
target = "windows"
|
||||
args = {
|
||||
NANOSERVER_VERSION = "ltsc2019"
|
||||
WINDOWS_BASE_IMAGE = "mcr.microsoft.com/windows/nanoserver:ltsc2019"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,6 +47,6 @@ target "windows-nanoserver-ltsc2022" {
|
||||
|
||||
target = "windows"
|
||||
args = {
|
||||
NANOSERVER_VERSION = "ltsc2022"
|
||||
WINDOWS_BASE_IMAGE = "mcr.microsoft.com/windows/nanoserver:ltsc2022"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user