Skip to content

Commit 3b0b09e

Browse files
authored
Merge pull request #2597 from firedrakeproject/fix_doc_build
Work around the issue raised in: actions/checkout#956 by setting the container user to root. Note that we don't want to do this more generally due to the configuration we use on the self-hosted builders.
2 parents f4e580e + f425ec5 commit 3b0b09e

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,10 @@ jobs:
1717
# The docker container to use.
1818
container:
1919
image: firedrakeproject/firedrake-vanilla:latest
20+
options: --user root
2021
# Steps represent a sequence of tasks that will be executed as
2122
# part of the jobs
2223
steps:
23-
- name: Fix permissions
24-
# Firedrake's Dockerfile sets USER to firedrake instead of
25-
# using the default user, so we need to update file
26-
# permissions for this image to work on GH Actions.
27-
# See https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners#docker-container-filesystem
28-
# (copied from https://help.github.com/en/actions/migrating-to-github-actions/migrating-from-circleci-to-github-actions)
29-
run: |
30-
sudo chmod -R 777 $GITHUB_WORKSPACE /github /__w/_temp
3124
- uses: actions/checkout@v2
3225
- name: Install
3326
run: |

0 commit comments

Comments
 (0)