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

Commit

Permalink
Create CI_BUILDS_DIR with world writeable permissions
Browse files Browse the repository at this point in the history
This allows unprivileged users to use the directory. Otherwise it can
fail if the directory does not exist in the image.
  • Loading branch information
jonasbb committed Jul 27, 2021
1 parent 8e18620 commit 7fd4cb4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prepare.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,6 @@ echo "Running in $CONTAINER_ID"

start_container
install_dependencies

# Create build folder such that unprivileged users have access
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 comments on commit 7fd4cb4

Please sign in to comment.