Skip to content

Commit

Permalink
Only change owners of the needed directories
Browse files Browse the repository at this point in the history
Looks like when the whole /github directory owner is changed, then the
next job in the pipeline fails because of the wrong permissions.
  • Loading branch information
2m committed Mar 16, 2020
1 parent e2b1f56 commit 2f9787a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ command=$3

# '/github/workspace' is mounted as a volume and has owner set to root
# set the owner to the 'build' user, so it can access package files
sudo chown -R build /github
sudo chown -R build /github/workspace /github/home

# assumes that package files are in a subdirectory
# of the same name as "pkgname", so this works well
Expand Down

0 comments on commit 2f9787a

Please sign in to comment.