Skip to content

Commit c9df4c2

Browse files
rbrennerclaude
andcommitted
fix(ci): remove sudo from deploy step — not available in runner
The Gitea Actions runner pod does not have sudo. The ctr invocations that imported and inspected images in the k8s.io containerd namespace were prefixed with sudo, causing the Deploy API to k3s step to fail. Removed sudo from both ctr calls; the runner already runs with the privileges needed to access the containerd socket directly. Co-Authored-By: Claude <noreply@anthropic.com> AI-Generated: true
1 parent 0d09a73 commit c9df4c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.gitea/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ jobs:
7373
# Export from buildah OCI storage and import into k3s containerd
7474
TMPTAR=$(mktemp /tmp/openmemory-api-XXXXXX.tar)
7575
buildah push "$IMAGE" "oci-archive:${TMPTAR}"
76-
sudo "$CTR" -n k8s.io -a "$SOCKET" images import "$TMPTAR"
76+
"$CTR" -n k8s.io -a "$SOCKET" images import "$TMPTAR"
7777
rm -f "$TMPTAR"
7878
echo "IMPORTED: openmemory-api into k3s containerd (k8s.io namespace)"
7979
# Tag so crictl/k3s can find it by the original reference
80-
DIGEST=$(sudo "$CTR" -n k8s.io -a "$SOCKET" images ls name=="$IMAGE" 2>/dev/null | awk 'NR==2{print $3}')
80+
DIGEST=$("$CTR" -n k8s.io -a "$SOCKET" images ls name=="$IMAGE" 2>/dev/null | awk 'NR==2{print $3}')
8181
echo "Image digest in containerd: $DIGEST"
8282
# Rollout restart to pick up new image
8383
kubectl rollout restart deployment/openmemory-api -n openmemory

0 commit comments

Comments
 (0)