50 lines
1.1 KiB
YAML
50 lines
1.1 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
|
|
|
|
run:
|
|
description: "Command(s) to run in the container"
|
|
required: false
|
|
|
|
shell:
|
|
description: "Shell to use"
|
|
required: false
|
|
default: /bin/sh
|
|
|
|
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"
|
|
default: ${{ job.container.network }}
|
|
required: false
|
|
|
|
runs:
|
|
using: "docker"
|
|
image: "Dockerfile"
|