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
Ivan Schaller e30de98e6a
Some checks failed
run tests / run-container (push) Failing after 6s
make entrypoint optional
2023-08-16 12:10:20 +02:00

59 lines
1.3 KiB
YAML

name: "Docker Run Action"
description: "Run a command in a new docker container"
inputs:
image:
description: "Docker image to run"
required: true
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
options:
description: "Custom docker run options"
required: false
mount_socket:
description: "Mount the docker socket into the container"
required: false
default: "false"
run:
description: "Command(s) to run in the container"
required: false
entrypoint:
description: "Entrypoint for the container"
required: false
registry:
description: "Container registry URL"
required: false
username:
description: "Container registry username"
required: false
password:
description: "Container registry password/token"
required: false
docker_network:
description: "Docker container network to use"
required: false
default: ${{ job.container.network }}
debug:
description: "Enable debugging"
required: false
default: "false"
runs:
using: "docker"
image: "Dockerfile"