mirror of
https://github.com/addnab/docker-run-action.git
synced 2024-12-26 18:51:03 +08:00
32 lines
654 B
YAML
32 lines
654 B
YAML
# 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
|
|
run:
|
|
description: 'Run command in container'
|
|
required: false
|
|
shell:
|
|
description: 'Use a specific shell'
|
|
required: false
|
|
default: sh
|
|
registry:
|
|
description: 'Registry'
|
|
required: false
|
|
username:
|
|
description: 'Username'
|
|
required: false
|
|
password:
|
|
description: 'Password'
|
|
required: false
|
|
runs:
|
|
using: 'docker'
|
|
image: 'Dockerfile'
|
|
env:
|
|
JOB_CONTAINER_NETWORK_ID: ${{ job.container.network }}
|