mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
* fix: support docker create arguments from container.options (#1022) * fix processing of errors, add verbose logging, fix test * disable linter for code copied from docker/cli * fix all linter issues * Add license info * Add opts_test.go from docker/cli and required testdata Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
parent
f1bc70aee7
commit
658b6fdbf8
15 changed files with 2327 additions and 32 deletions
12
act/runner/testdata/container-hostname/push.yml
vendored
12
act/runner/testdata/container-hostname/push.yml
vendored
|
@ -10,10 +10,13 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:16-buster-slim
|
||||
options: "--hostname my.host.local"
|
||||
options: "--hostname my.host.local --user 100:101"
|
||||
steps:
|
||||
- run: |
|
||||
[[ $(uname -n) == "my.host.local" ]]
|
||||
echo "UID: $(id -u)"
|
||||
echo "GID: $(id -g)"
|
||||
echo "HOST: $(uname -n)"
|
||||
[[ "$(id -u)" == "100" ]] && [[ "$(id -g)" == "101" ]] && [[ "$(uname -n)" == "my.host.local" ]]
|
||||
|
||||
default-hostname:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -21,4 +24,7 @@ jobs:
|
|||
image: node:16-buster-slim
|
||||
steps:
|
||||
- run: |
|
||||
[[ $(uname -n) ]] && [[ $(uname -n) != "my.host.local" ]]
|
||||
echo "UID: $(id -u)"
|
||||
echo "GID: $(id -g)"
|
||||
echo "HOST: $(uname -n)"
|
||||
[[ "$(id -u)" == "0" ]] && [[ "$(id -g)" == "0" ]] && [[ $(uname -n) ]] && [[ "$(uname -n)" != "my.host.local" ]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue