Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Commit 7fd4cb4

Browse files
committed
Create CI_BUILDS_DIR with world writeable permissions
This allows unprivileged users to use the directory. Otherwise it can fail if the directory does not exist in the image.
1 parent 8e18620 commit 7fd4cb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

prepare.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,6 @@ echo "Running in $CONTAINER_ID"
112112

113113
start_container
114114
install_dependencies
115+
116+
# Create build folder such that unprivileged users have access
117+
podman exec --user root:root "$CONTAINER_ID" /bin/bash -c "mkdir -p '$CUSTOM_ENV_CI_BUILDS_DIR' && chmod -R 777 '$CUSTOM_ENV_CI_BUILDS_DIR'"

0 commit comments

Comments
 (0)