code-server-golang update/add workflows

This commit is contained in:
aptalca
2023-05-16 22:03:02 -04:00
parent 60d591057c
commit a4ab4f0ea6
6 changed files with 34 additions and 39 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
FROM ghcr.io/linuxserver/baseimage-alpine:3.15 as buildstage
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
ARG GO_VERSION
RUN \
apk add --no-cache \
curl \
grep && \
if [ -z ${GO_VERSION+x} ]; then \
GO_VERSION=$(curl -sLX GET https://go.dev/dl/ | grep -o '<span.*>.*linux-amd64.*</span>' | grep -oP '(?<=go).*(?=.linux)'); \