Skip to content

Commit b4454a0

Browse files
committed
Update pipelines
1 parent ce71fa2 commit b4454a0

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

containers/debian/Dockerfile

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,13 @@ RUN useradd -ms /bin/bash ${NORMAL_USER} && \
6767
sudo dpkg -i cosign_${LATEST_VERSION}_amd64.deb
6868

6969
# Install PowerShell
70-
ARG DEBIAN_VERSION=$(grep '^VERSION_ID=' /etc/os-release | cut -d= -f2 | tr -d '"')
71-
RUN curl -sSL "https://packages.microsoft.com/config/debian/${DEBIAN_VERSION}/packages-microsoft-prod.deb" \
72-
-o packages-microsoft-prod.deb \
73-
&& dpkg -i packages-microsoft-prod.deb \
74-
&& rm packages-microsoft-prod.deb \
75-
&& apt-get update \
76-
&& apt-get install -y powershell \
77-
&& ln -sf /usr/bin/pwsh /usr/bin/powershell
70+
RUN DEBIAN_VERSION=$(grep '^VERSION_ID=' /etc/os-release | cut -d= -f2 | tr -d '"') && \
71+
curl -sSL "https://packages.microsoft.com/config/debian/$DEBIAN_VERSION/packages-microsoft-prod.deb" -o packages-microsoft-prod.deb && \
72+
dpkg -i packages-microsoft-prod.deb && \
73+
rm packages-microsoft-prod.deb && \
74+
apt-get update && \
75+
apt-get install -y powershell && \
76+
ln -sf /usr/bin/pwsh /usr/bin/powershell
7877

7978
#Install Azure Modules for Powershell - This can take a while, so setting as final step to shorten potential rebuilds
8079
RUN pwsh -Command Set-PSRepository -Name "PSGallery" -InstallationPolicy Trusted && \

containers/windows-servercore2025/Dockerfile renamed to containers/windows-server2025/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/windows/servercore:ltsc2025
1+
FROM mcr.microsoft.com/windows/server:ltsc2025
22

33
# escape=`
44

File renamed without changes.

0 commit comments

Comments
 (0)