Skip to content

Commit 03868cb

Browse files
committed
Fixed templates
1 parent 5f4c7d7 commit 03868cb

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

22/windows-2019/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ RUN $newPath = ('C:\nodejs;{0}\Yarn\bin;{1}' -f $env:LOCALAPPDATA, $env:PATH); \
99
# doing this first to share cache across versions more aggressively
1010

1111
ENV NODE_VERSION 22.7.0
12-
ENV CHECKSUM 3fc638727974262b4f65a6b1b43c22fb2d80671cdcb50e1237e0b05d1330aaf7
12+
ENV NODE_CHECKSUM 3fc638727974262b4f65a6b1b43c22fb2d80671cdcb50e1237e0b05d1330aaf7
1313

1414
RUN $url = ('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION); \
1515
Write-Host ('Downloading {0} ...' -f $url); \
1616
Invoke-WebRequest -Uri $url -OutFile 'node.zip'; \
1717
\
18-
Write-Host ('Verifying sha256 ({0}) ...' -f $env:NODE_SHA256); \
19-
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) { throw 'SHA256 mismatch' }; \
18+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:NODE_CHECKSUM); \
19+
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_CHECKSUM) { throw 'SHA256 mismatch' }; \
2020
\
2121
Write-Host 'Expanding ...'; \
2222
Expand-Archive node.zip -DestinationPath C:\; \

22/windows-2022/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ RUN $newPath = ('C:\nodejs;{0}\Yarn\bin;{1}' -f $env:LOCALAPPDATA, $env:PATH); \
99
# doing this first to share cache across versions more aggressively
1010

1111
ENV NODE_VERSION 22.7.0
12-
ENV CHECKSUM 3fc638727974262b4f65a6b1b43c22fb2d80671cdcb50e1237e0b05d1330aaf7
12+
ENV NODE_CHECKSUM 3fc638727974262b4f65a6b1b43c22fb2d80671cdcb50e1237e0b05d1330aaf7
1313

1414
RUN $url = ('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION); \
1515
Write-Host ('Downloading {0} ...' -f $url); \
1616
Invoke-WebRequest -Uri $url -OutFile 'node.zip'; \
1717
\
18-
Write-Host ('Verifying sha256 ({0}) ...' -f $env:NODE_SHA256); \
19-
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) { throw 'SHA256 mismatch' }; \
18+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:NODE_CHECKSUM); \
19+
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_CHECKSUM) { throw 'SHA256 mismatch' }; \
2020
\
2121
Write-Host 'Expanding ...'; \
2222
Expand-Archive node.zip -DestinationPath C:\; \

Dockerfile-windows.template

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ RUN $newPath = ('C:\nodejs;{0}\Yarn\bin;{1}' -f $env:LOCALAPPDATA, $env:PATH); \
99
# doing this first to share cache across versions more aggressively
1010

1111
ENV NODE_VERSION 0.0.0
12-
ENV CHECKSUM CHECKSUM_x64
12+
ENV NODE_CHECKSUM CHECKSUM_x64
1313

1414
RUN $url = ('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION); \
1515
Write-Host ('Downloading {0} ...' -f $url); \
1616
Invoke-WebRequest -Uri $url -OutFile 'node.zip'; \
1717
\
18-
Write-Host ('Verifying sha256 ({0}) ...' -f $env:NODE_SHA256); \
19-
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) { throw 'SHA256 mismatch' }; \
18+
Write-Host ('Verifying sha256 ({0}) ...' -f $env:NODE_CHECKSUM); \
19+
if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_CHECKSUM) { throw 'SHA256 mismatch' }; \
2020
\
2121
Write-Host 'Expanding ...'; \
2222
Expand-Archive node.zip -DestinationPath C:\; \

update.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ function update_node_version() {
184184
fatal "Failed to fetch checksum for version ${nodeVersion}"
185185
fi
186186
sed -Ei -e "s/mcr\.microsoft\.com\/windows\/servercore:version/mcr\.microsoft\.com\/windows\/servercore:ltsc${windows_version}/" "${dockerfile}-tmp"
187-
sed -Ei -e 's/^(ENV CHECKSUM ).*/\1'"${checksum}"'/' "${dockerfile}-tmp"
187+
sed -Ei -e 's/^(ENV NODE_CHECKSUM ).*/\1'"${checksum}"'/' "${dockerfile}-tmp"
188188
fi
189189

190190
if diff -q "${dockerfile}-tmp" "${dockerfile}" > /dev/null; then

0 commit comments

Comments
 (0)