aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--zig-build/Dockerfile2
-rw-r--r--zig-build/release.sh4
2 files changed, 4 insertions, 2 deletions
diff --git a/zig-build/Dockerfile b/zig-build/Dockerfile
index b606d678a..81195266c 100644
--- a/zig-build/Dockerfile
+++ b/zig-build/Dockerfile
@@ -41,6 +41,7 @@ ENV CXX=clang++-13
RUN mkdir /output;
WORKDIR /output
+ARG TAG "jan1"
# Compile zig
RUN --mount=type=tmpfs,target=/zig-build \
@@ -53,6 +54,7 @@ RUN --mount=type=tmpfs,target=/zig-build \
rm -rf .git; \
cd /zig-build; \
zip -r zig.zip zig; \
+ echo "${TAG}" > /output/.zig-version; \
cp zig.zip /output;
diff --git a/zig-build/release.sh b/zig-build/release.sh
index 05d9d8e0c..d59254c43 100644
--- a/zig-build/release.sh
+++ b/zig-build/release.sh
@@ -32,11 +32,11 @@ fi
# Name should be $BUILDKIT_ARCH so we only need that arg passed
export CONTAINER_NAME=zig-linux-$BUILDKIT_ARCH
-export TAG=dec30
+export TAG=jan1
temp=$(mktemp -d)
-docker build . -t $CONTAINER_NAME --progress=plain --platform=linux/$BUILDKIT_ARCH
+docker build . -t $CONTAINER_NAME --progress=plain --platform=linux/$BUILDKIT_ARCH --build-arg TAG=$TAG
if (($?)); then
echo "Failed to build container"