mirror of
https://github.com/addnab/docker-run-action.git
synced 2024-12-26 10:41:02 +08:00
Docker Run Action
This action targets a very specific use-case that is not currently supported by Github Workflows. This action gives you the capability to run built containers.
Docker already supports running commands inside a docker image. See jobs.<jobs_id>.container. But it doesn't give you a clean way to run an image from a private repo or an image built on a previous step.
Example Usage
Standard use-case
- uses: addnab/docker-run-action@v1
with:
image: docker:latest
command: echo "hello world"
Supported Inputs
image:
description: 'Image'
required: true
options:
description: 'Options'
required: false
command:
description: 'Command'
required: false
args:
description: 'Args'
required: false
registry:
description: 'Registry'
required: false
username:
description: 'Username'
required: false
password:
description: 'Password'
required: false
Languages
Shell
79.7%
Dockerfile
20.3%