actions: config-options: mount read-only (#718)
To illustrate (partially) [this feature request](https://code.forgejo.org/forgejo/runner/issues/79#issuecomment-43844) Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/718 Reviewed-by: Michael Kriese <michael.kriese@gmx.de> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
parent
dd31a59c1e
commit
07b9318ff7
2 changed files with 3 additions and 1 deletions
|
|
@ -8,6 +8,8 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
test -f /srv/example-config-options-volume-valid
|
test -f /srv/example-config-options-volume-valid
|
||||||
|
- run: |
|
||||||
|
! test -w /srv/example-config-options-volume-valid
|
||||||
- run: |
|
- run: |
|
||||||
! test -f /srv/example-config-options-volume-invalid
|
! test -f /srv/example-config-options-volume-invalid
|
||||||
- run: |
|
- run: |
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ cache:
|
||||||
container:
|
container:
|
||||||
network: ""
|
network: ""
|
||||||
privileged: false
|
privileged: false
|
||||||
options: "--volume /srv/example-config-options-volume-valid:/srv/example-config-options-volume-valid --volume /srv/example-config-options-volume-invalid:/srv/example-config-options-volume-invalid --env FROB=NITZ"
|
options: "--volume /srv/example-config-options-volume-valid:/srv/example-config-options-volume-valid:ro --volume /srv/example-config-options-volume-invalid:/srv/example-config-options-volume-invalid --env FROB=NITZ"
|
||||||
workdir_parent:
|
workdir_parent:
|
||||||
valid_volumes: ["/srv/example-config-options-volume-valid"]
|
valid_volumes: ["/srv/example-config-options-volume-valid"]
|
||||||
docker_host: ""
|
docker_host: ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue