From 1d2731cb5491e219d4314bb5a25516f7c9e2d9ec Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 28 Dec 2025 17:03:39 +0000 Subject: [PATCH 1/4] Initial plan From 0ee304463c9521cb18b015d3f58ef6f4ed6ca37f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 28 Dec 2025 17:17:05 +0000 Subject: [PATCH 2/4] Fix missing 'file' command error in Docker test script Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index abc6629..25ab110 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,6 +18,10 @@ RUN make init # Runtime stage - use Alpine for minimal size FROM alpine:3.19 +# Install file command for testing init binary +# file package provides the file(1) command to determine file type +RUN apk add --no-cache file || true + # Note: Alpine includes busybox by default # Create minimal rootfs structure @@ -65,7 +69,11 @@ if [ -f /sparkos/rootfs/sbin/init ]; then ls -lh /sparkos/rootfs/sbin/init echo "" echo "File type:" - file /sparkos/rootfs/sbin/init + if command -v file >/dev/null 2>&1; then + file /sparkos/rootfs/sbin/init + else + echo " (file command not available)" + fi echo "" echo "Dependencies:" ldd /sparkos/rootfs/sbin/init 2>&1 || echo " Static binary (no dependencies)" From 6025502848a0d55548e3e68c5fe91dd6d7f5be61 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 28 Dec 2025 17:32:22 +0000 Subject: [PATCH 3/4] Fix invalid Docker tag format in workflow Remove problematic prefix={{branch}}- from sha tag type that creates invalid tags like :-SHA Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- .github/workflows/docker-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 0fca896..1cf9e34 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -50,7 +50,7 @@ jobs: type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} - type=sha,prefix={{branch}}- + type=sha type=raw,value=latest,enable={{is_default_branch}} - name: Build Docker image From d74af25d5e4334f1ecd4a1deb37d7193d5500130 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Sun, 28 Dec 2025 18:12:26 +0000 Subject: [PATCH 4/4] Update Dockerfile Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 25ab110..dfc6c47 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,7 @@ FROM alpine:3.19 # Install file command for testing init binary # file package provides the file(1) command to determine file type -RUN apk add --no-cache file || true +RUN apk add --no-cache file # Note: Alpine includes busybox by default