2020-06-17 18:47:31 -04:00
|
|
|
# action.yml
|
|
|
|
name: 'Docker Run Action'
|
|
|
|
description: 'Run a command in a new container'
|
|
|
|
inputs:
|
|
|
|
image:
|
|
|
|
description: 'Image'
|
|
|
|
required: true
|
|
|
|
options:
|
|
|
|
description: 'Options'
|
|
|
|
required: false
|
2020-06-17 21:00:26 -04:00
|
|
|
run:
|
|
|
|
description: 'Run command in container'
|
2020-06-17 18:47:31 -04:00
|
|
|
required: false
|
2020-06-17 21:21:47 -04:00
|
|
|
shell:
|
|
|
|
description: 'Use a specific shell'
|
|
|
|
required: false
|
|
|
|
default: sh
|
2020-06-17 18:47:31 -04:00
|
|
|
registry:
|
|
|
|
description: 'Registry'
|
|
|
|
required: false
|
|
|
|
username:
|
|
|
|
description: 'Username'
|
|
|
|
required: false
|
|
|
|
password:
|
|
|
|
description: 'Password'
|
|
|
|
required: false
|
2021-01-28 17:00:10 +01:00
|
|
|
docker_network:
|
|
|
|
description: 'Docker Network ID'
|
|
|
|
default: ${{ job.container.network }}
|
|
|
|
retuired: false
|
2020-06-17 18:47:31 -04:00
|
|
|
runs:
|
|
|
|
using: 'docker'
|
|
|
|
image: 'Dockerfile'
|