forked from mirrors/kingfisher
fixing docker build permission error in github actions
This commit is contained in:
parent
3c112d919a
commit
652abe9440
2 changed files with 3 additions and 2 deletions
3
.github/workflows/release.yml
vendored
3
.github/workflows/release.yml
vendored
|
|
@ -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 \
|
||||
|
|
|
|||
2
Makefile
2
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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue