mirror of
https://github.com/home-assistant/operating-system.git
synced 2025-07-24 13:36:31 +00:00
Use anonymous Docker volume as build output (#1825)
* Use anonymous Docker volume as build output Use anonymous Docker volumes as build output. This makes sure every build is using a clean output directory.
This commit is contained in:
parent
23e58009f2
commit
66303c1078
1
.github/workflows/dev.yml
vendored
1
.github/workflows/dev.yml
vendored
@ -102,6 +102,7 @@ jobs:
|
||||
docker run --rm --privileged -v "${GITHUB_WORKSPACE}:/build" \
|
||||
-e BUILDER_UID="${BUILDER_UID}" -e BUILDER_GID="${BUILDER_GID}" \
|
||||
-v "${{ matrix.board.runner }}-build-cache:/cache" \
|
||||
-v "/build/output" \
|
||||
haos-builder make BUILDDIR=/build VERSION_DEV=${{ needs.prepare.outputs.version_dev }} ${{ matrix.board.defconfig }}
|
||||
|
||||
- name: Upload images
|
||||
|
@ -13,6 +13,8 @@ if [ "${BUILDER_UID:-0}" -ne 0 ] && [ "${BUILDER_GID:-0}" -ne 0 ]; then
|
||||
echo "builder ALL=(ALL:ALL) NOPASSWD: ALL" >> /etc/sudoers
|
||||
# Make sure cache is accessible by builder
|
||||
chown "${BUILDER_UID}:${BUILDER_GID}" /cache
|
||||
# Make sure output is accessible by builder (if anonymous volume is used)
|
||||
chown "${BUILDER_UID}:${BUILDER_GID}" /build/output || true
|
||||
USER="builder"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user