forgejo-runner-act/pkg/container
Björn Brauer 3f3b25ae84
feat: add support for building docker actions with private registries (#1557)
This commit adds a new `LoadDockerAuthConfigs` function, which loads all
registry auths that are configured on the host and sends them with the build
command to the docker daemon.

This is needed in case act builds a docker action and the images referenced in
that docker action are located on private registries or otherwise require
authentication (e.g. to get a higher rate limit).

The code is adapted from how the docker cli works:
257ff41304/cli/command/image/build.go (L323-L332)

Co-authored-by: Markus Wolf <mail@markus-wolf.de>

Co-authored-by: Markus Wolf <mail@markus-wolf.de>
2023-01-12 21:29:30 +00:00
..
testdata fix: support docker create arguments from container.options (#1022) (#1351) 2022-10-06 22:09:43 +00:00
container_types.go feat: Allow building without docker support (#1507) 2023-01-10 22:08:57 +00:00
docker_auth.go feat: add support for building docker actions with private registries (#1557) 2023-01-12 21:29:30 +00:00
docker_build.go feat: add support for building docker actions with private registries (#1557) 2023-01-12 21:29:30 +00:00
docker_cli.go feat: Allow building without docker support (#1507) 2023-01-10 22:08:57 +00:00
docker_cli_test.go fix: support docker create arguments from container.options (#1022) (#1351) 2022-10-06 22:09:43 +00:00
docker_images.go feat: Allow building without docker support (#1507) 2023-01-10 22:08:57 +00:00
docker_images_test.go refactor: move from io/ioutil to io and os packages (#1417) 2022-10-29 17:15:38 +00:00
DOCKER_LICENSE fix: support docker create arguments from container.options (#1022) (#1351) 2022-10-06 22:09:43 +00:00
docker_logger.go feat: Allow building without docker support (#1507) 2023-01-10 22:08:57 +00:00
docker_pull.go feat: Allow building without docker support (#1507) 2023-01-10 22:08:57 +00:00
docker_pull_test.go Improve logging (#1171) 2022-06-17 15:55:21 +00:00
docker_run.go feat: Allow building without docker support (#1507) 2023-01-10 22:08:57 +00:00
docker_run_test.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
docker_stub.go feat: Allow building without docker support (#1507) 2023-01-10 22:08:57 +00:00
docker_volume.go feat: Allow building without docker support (#1507) 2023-01-10 22:08:57 +00:00
executions_environment.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
file_collector.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
file_collector_test.go fix: copy ignored tracked files (#1074) 2022-04-04 15:27:00 +00:00
host_environment.go fix: align runner.os / runner.arch to known values (#1510) 2022-12-19 14:58:55 +00:00
host_environment_test.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
linux_container_environment_extensions.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
linux_container_environment_extensions_test.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
parse_env_file.go refactor: share UpdateFromEnv logic (#1457) 2022-12-06 16:19:27 +00:00
util.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
util_openbsd_mips64.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
util_plan9.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00
util_windows.go feat: Host environment (#1293) 2022-11-16 21:29:45 +00:00