mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-18 08:48:27 -04:00
code-server-powershell update/add workflows
This commit is contained in:
+9
-10
@@ -1,25 +1,24 @@
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.14 as buildstage
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
ARG PS_VERSION
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
|
||||
|
||||
ARG MOD_VERSION
|
||||
|
||||
RUN \
|
||||
apk add --no-cache \
|
||||
curl \
|
||||
jq && \
|
||||
if [ -z ${PS_VERSION+x} ]; then \
|
||||
PS_VERSION=$(curl -Ls -o /dev/null -w %{url_effective} https://aka.ms/powershell-release?tag=stable \
|
||||
if [ -z ${MOD_VERSION+x} ]; then \
|
||||
MOD_VERSION=$(curl -Ls -o /dev/null -w %{url_effective} https://aka.ms/powershell-release?tag=stable \
|
||||
| sed 's|.*tag/v||g'); \
|
||||
fi && \
|
||||
mkdir -p /root-layer/powershell && \
|
||||
curl -o \
|
||||
/root-layer/powershell/powershell_x86_64.tar.gz -L \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/powershell-${PS_VERSION}-linux-x64.tar.gz" && \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${MOD_VERSION}/powershell-${MOD_VERSION}-linux-x64.tar.gz" && \
|
||||
curl -o \
|
||||
/root-layer/powershell/powershell_armv7l.tar.gz -L \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/powershell-${PS_VERSION}-linux-arm32.tar.gz" && \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${MOD_VERSION}/powershell-${MOD_VERSION}-linux-arm32.tar.gz" && \
|
||||
curl -o \
|
||||
/root-layer/powershell/powershell_aarch64.tar.gz -L \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${PS_VERSION}/powershell-${PS_VERSION}-linux-arm64.tar.gz" && \
|
||||
"https://github.com/PowerShell/PowerShell/releases/download/v${MOD_VERSION}/powershell-${MOD_VERSION}-linux-arm64.tar.gz" && \
|
||||
echo "******** run basic test to validate tarballs *********" && \
|
||||
for i in x86_64 armv7l aarch64; do \
|
||||
mkdir -p "/tmp/${i}"; \
|
||||
|
||||
Reference in New Issue
Block a user