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
Yossi Farjoun b9fe748ee2 parent 358af5c600
author Yossi Farjoun <farjoun@broadinstitute.org> 1617479686 -0400
committer Yossi Farjoun <farjoun@broadinstitute.org> 1618455120 -0400

Change the way the script is run. instead of modfying the ENTRYPOINT, we will simply add the "shell" (default sh) and the "script_prefix" (default -c)
and then the script.

That way the possible comple entry point is not disturbed. if a user would like to remove the ENTRYPOINT they can provide an "option" "--entrypoint ''" for example.
2021-04-14 23:06:04 -04:00

37 lines
858 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
script_prefix:
description: 'a prefix telling the shell to execute the following (single) string as a script'
required: false
default: -c
registry:
description: 'Registry'
required: false
username:
description: 'Username'
required: false
password:
description: 'Password'
required: false
docker_network:
description: 'Docker Network ID'
default: ${{ job.container.network }}
required: false
runs:
using: 'docker'
image: 'Dockerfile'