Fixed issue with the SkipCache parameter

This commit is contained in:
Shawn Anderson 2023-03-16 10:22:25 -04:00
parent caabc769e4
commit ff0c8061b5
2 changed files with 3 additions and 2 deletions

View file

@ -45,7 +45,7 @@ RUN \
fi fi
# Stage 3 - Build runtime image # Stage 3 - Build runtime image
FROM ghcr.io/linuxserver/baseimage-ubuntu:bionic FROM ghcr.io/linuxserver/baseimage-alpine:3.17
ARG TARGETPLATFORM ARG TARGETPLATFORM
ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64} ENV TARGETPLATFORM=${TARGETPLATFORM:-linux/amd64}
ARG BUILDPLATFORM ARG BUILDPLATFORM

View file

@ -49,7 +49,7 @@ if (-Not $SkipPush.IsPresent) {
$dockerArgs += @("--push") $dockerArgs += @("--push")
} }
if (-Not $SkipCache.IsPresent) { if ($SkipCache.IsPresent) {
$dockerArgs += @("--no-cache") $dockerArgs += @("--no-cache")
} }
@ -65,4 +65,5 @@ $dockerArgs += @("--tag", "$($imageName):$($Version)" )
$dockerApps += @("--build-arg", "VERSION=$($Version)" ) $dockerApps += @("--build-arg", "VERSION=$($Version)" )
Write-Host "Generating docker image $imageName for $Platforms" Write-Host "Generating docker image $imageName for $Platforms"
Write-Host "Args: $dockerArgs"
& docker $dockerArgs & docker $dockerArgs