fixing docker build permission error in github actions

This commit is contained in:
Mick Grove 2025-07-26 17:28:49 -07:00
commit 652abe9440
2 changed files with 3 additions and 2 deletions

View file

@ -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 \

View file

@ -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 \