mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-16 18:01:34 +00:00
they override any similar options from the configuration file since it would not make much sense to define a health check that applies to all containers, it is only ever meaningful for services. ```yaml jobs: mysql: runs-on: ubuntu-latest container: mysql:8 services: maindb: image: mysql:8 env: MYSQL_DATABASE: dbname MYSQL_USER: dbuser MYSQL_PASSWORD: dbpass MYSQL_RANDOM_ROOT_PASSWORD: yes options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 ``` they are also allowed in job.<id>.container.options although they are not useful because they are harmless See also the [associated documentation](https://codeberg.org/forgejo/docs/pulls/1366) pull request. --- <!--start release-notes-assistant--> <!--URL:https://code.forgejo.org/forgejo/runner--> - features - [PR](https://code.forgejo.org/forgejo/runner/pulls/784): <!--number 784 --><!--line 0 --><!--description ZmVhdDogLS1oZWFsdGgtKiBvcHRpb25zIGFyZSBhbGxvd2VkIGluIGpvYi48aWQ+LnNlcnZpY2VzLjxpZD4ub3B0aW9ucw==-->feat: --health-* options are allowed in job.<id>.services.<id>.options<!--description--> <!--end release-notes-assistant--> Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/784 Reviewed-by: Gusted <gusted@noreply.code.forgejo.org> Co-authored-by: Earl Warren <contact@earl-warren.org> Co-committed-by: Earl Warren <contact@earl-warren.org> |
||
---|---|---|
.. | ||
testdata | ||
container_types.go | ||
docker_auth.go | ||
docker_build.go | ||
docker_cli.go | ||
docker_cli_test.go | ||
docker_images.go | ||
docker_images_test.go | ||
DOCKER_LICENSE | ||
docker_logger.go | ||
docker_network.go | ||
docker_pull.go | ||
docker_pull_test.go | ||
docker_run.go | ||
docker_run_test.go | ||
docker_stub.go | ||
docker_volume.go | ||
executions_environment.go | ||
host_environment.go | ||
host_environment_test.go | ||
linux_container_environment_extensions.go | ||
linux_container_environment_extensions_test.go | ||
parse_env_file.go | ||
util.go | ||
util_openbsd_mips64.go | ||
util_plan9.go | ||
util_windows.go |