This repository has been archived on 2024-09-20. You can view files and clone it, but cannot push or open issues or pull requests.
docker-run-action/action.yml

60 lines
1.3 KiB
YAML
Raw Normal View History

2023-08-16 11:20:10 +02:00
name: "Docker Run Action"
description: "Run a command in a new docker container"
2020-06-18 00:47:31 +02:00
inputs:
image:
2023-08-16 11:20:10 +02:00
description: "Docker image to run"
2020-06-18 00:47:31 +02:00
required: true
2023-08-16 11:20:10 +02:00
workdir:
description: "Workdir for the container. Defaults to the repository workspace"
required: false
default: ${{ github.workspace }}
volumes:
description: "Volumes to mount in the container. The repository workspace is automatically mounted"
required: false
2020-06-18 00:47:31 +02:00
options:
2023-08-16 11:20:10 +02:00
description: "Custom docker run options"
2020-06-18 00:47:31 +02:00
required: false
2023-08-16 11:20:10 +02:00
2023-08-16 11:25:20 +02:00
mount_socket:
description: "Mount the docker socket into the container"
required: false
default: "false"
2020-06-18 03:00:26 +02:00
run:
2023-08-16 11:20:10 +02:00
description: "Command(s) to run in the container"
2020-06-18 00:47:31 +02:00
required: false
2023-08-16 11:20:10 +02:00
2023-08-16 12:10:20 +02:00
entrypoint:
description: "Entrypoint for the container"
2020-06-18 03:21:47 +02:00
required: false
2023-08-16 11:20:10 +02:00
2020-06-18 00:47:31 +02:00
registry:
2023-08-16 11:20:10 +02:00
description: "Container registry URL"
2020-06-18 00:47:31 +02:00
required: false
2023-08-16 11:20:10 +02:00
2020-06-18 00:47:31 +02:00
username:
2023-08-16 11:20:10 +02:00
description: "Container registry username"
2020-06-18 00:47:31 +02:00
required: false
2023-08-16 11:20:10 +02:00
2020-06-18 00:47:31 +02:00
password:
2023-08-16 11:20:10 +02:00
description: "Container registry password/token"
2020-06-18 00:47:31 +02:00
required: false
2023-08-16 11:20:10 +02:00
docker_network:
2023-08-16 11:20:10 +02:00
description: "Docker container network to use"
2023-08-16 11:56:27 +02:00
required: false
default: ${{ job.container.network }}
2023-08-16 11:56:27 +02:00
debug:
description: "Enable debugging"
required: false
2023-08-16 11:56:27 +02:00
default: "false"
2023-08-16 11:20:10 +02:00
2020-06-18 00:47:31 +02:00
runs:
2023-08-16 11:20:10 +02:00
using: "docker"
image: "Dockerfile"