mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
support for container option: --hostname (#809)
This commit is contained in:
parent
cbcc52c438
commit
0e52836daf
4 changed files with 50 additions and 0 deletions
20
act/runner/testdata/container-hostname/push.yml
vendored
Normal file
20
act/runner/testdata/container-hostname/push.yml
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
name: container-hostname
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
with-hostname:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:12-buster-slim
|
||||
options: "--hostname my.host.local"
|
||||
steps:
|
||||
- run: |
|
||||
[[ $(uname -n) == "my.host.local" ]]
|
||||
|
||||
default-hostname:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:12-buster-slim
|
||||
steps:
|
||||
- run: |
|
||||
[[ $(uname -n) ]] && [[ $(uname -n) != "my.host.local" ]]
|
Loading…
Add table
Add a link
Reference in a new issue