Skip to content

Commit c1f7171

Browse files
committed
ci(docker): fix powershell docker image
1 parent 2316bd6 commit c1f7171

File tree

3 files changed

+12
-39
lines changed

3 files changed

+12
-39
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126
SEMAPHORE_IMAGE=semaphoreui/semaphore
127127
SEMAPHORE_VERSION=${{ github.ref_name }}
128128
file: deployment/docker/server/powershell/Dockerfile
129-
platforms: linux/amd64,linux/arm64 # ,linux/arm/v6
129+
platforms: linux/amd64
130130
push: ${{ github.event_name != 'pull_request' }}
131131
labels: ${{ steps.server.outputs.labels }}
132132
tags: semaphoreui/semaphore:${{ github.ref_name }}-powershell7.5.0
@@ -180,7 +180,7 @@ jobs:
180180
SEMAPHORE_IMAGE=semaphoreui/runner
181181
SEMAPHORE_VERSION=${{ github.ref_name }}
182182
file: deployment/docker/server/powershell/Dockerfile
183-
platforms: linux/amd64,linux/arm64 #,linux/arm/v6
183+
platforms: linux/amd64
184184
push: ${{ github.event_name != 'pull_request' }}
185185
labels: ${{ steps.runner.outputs.labels }}
186186
tags: semaphoreui/runner:${{ github.ref_name }}-powershell7.5.0

deployment/docker/runner/powershell/Dockerfile

Lines changed: 0 additions & 33 deletions
This file was deleted.

deployment/docker/server/powershell/Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,30 @@ USER root
1010

1111
# Install dependencies
1212
RUN apk add --no-cache \
13-
curl \
1413
ca-certificates \
1514
less \
16-
ncurses \
15+
ncurses-terminfo-base \
1716
krb5-libs \
1817
libgcc \
1918
libintl \
2019
libssl3 \
2120
libstdc++ \
2221
tzdata \
2322
userspace-rcu \
24-
zlib
23+
zlib \
24+
icu-libs \
25+
curl
2526

26-
RUN wget -O /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-${TARGETARCH/amd/x}.tar.gz
27+
apk -X https://dl-cdn.alpinelinux.org/alpine/edge/main add --no-cache \
28+
lttng-ust \
29+
openssh-client
30+
31+
RUN wget -O /tmp/powershell.tar.gz https://github.com/PowerShell/PowerShell/releases/download/v${POWERSHELL_VERSION}/powershell-${POWERSHELL_VERSION}-linux-musl-${TARGETARCH/amd/x}.tar.gz
2732

2833
RUN mkdir -p /opt/microsoft/powershell/${POWERSHELL_VERSION} \
2934
&& tar zxf /tmp/powershell.tar.gz -C /opt/microsoft/powershell/${POWERSHELL_VERSION} \
3035
&& rm /tmp/powershell.tar.gz \
36+
&& chmod +x /opt/microsoft/powershell/${POWERSHELL_VERSION}/pwsh \
3137
&& ln -s /opt/microsoft/powershell/${POWERSHELL_VERSION}/pwsh /usr/local/bin/pwsh \
3238
&& ln -s /opt/microsoft/powershell/${POWERSHELL_VERSION}/pwsh /usr/local/bin/powershell
3339

0 commit comments

Comments
 (0)