feat: actions: verify that container.options --hostname is valid
Refs: https://code.forgejo.org/forgejo/act/pulls/95
This commit is contained in:
parent
925c936032
commit
ff2c6790b3
2 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,8 @@ on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
|
container:
|
||||||
|
options: "--hostname customname"
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
test -f /srv/example-config-options-volume-valid
|
test -f /srv/example-config-options-volume-valid
|
||||||
|
@ -10,3 +12,5 @@ jobs:
|
||||||
! test -f /srv/example-config-options-volume-invalid
|
! test -f /srv/example-config-options-volume-invalid
|
||||||
- run: |
|
- run: |
|
||||||
test "$FROB" = "NITZ"
|
test "$FROB" = "NITZ"
|
||||||
|
- run: |
|
||||||
|
test "$(cat /etc/hostname)" = customname
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
|
|
||||||
log:
|
log:
|
||||||
level: debug
|
level: debug
|
||||||
|
job_level: debug
|
||||||
|
|
||||||
runner:
|
runner:
|
||||||
file: .runner
|
file: .runner
|
||||||
|
|
Loading…
Add table
Reference in a new issue