From 652abe94403f7b30b9c48ca847a129bf5ac140c4 Mon Sep 17 00:00:00 2001 From: Mick Grove Date: Sat, 26 Jul 2025 17:28:49 -0700 Subject: [PATCH] fixing docker build permission error in github actions --- .github/workflows/release.yml | 3 +++ Makefile | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5eb042c..56fb028 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,6 +27,9 @@ jobs: - name: Build (Makefile linux-x64) run: make linux-x64 + - name: Fix permissions + run: sudo chown -R $(id -u):$(id -g) target + - name: Build Debian package run: | cargo deb --no-build --target x86_64-unknown-linux-musl \ diff --git a/Makefile b/Makefile index 33c3998..e662d7e 100644 --- a/Makefile +++ b/Makefile @@ -241,7 +241,6 @@ endif linux-x64: check-docker create-dockerignore @mkdir -p target/release docker run --platform linux/amd64 --rm \ - --user "$(shell id -u):$(shell id -g)" \ -v "$$(pwd):/src" -w /src rust:1.88-alpine sh -eu -c '\ apk add --no-cache \ musl-dev \ @@ -271,7 +270,6 @@ linux-x64: check-docker create-dockerignore linux-arm64: check-docker create-dockerignore @mkdir -p target/release docker run --platform linux/arm64 --rm \ - --user "$(shell id -u):$(shell id -g)" \ -v "$$(pwd):/src" -w /src rust:1.88-alpine sh -eu -c '\ apk add --no-cache \ musl-dev \