2020-06-18 01:47:31 +03:00
# action.yml
2023-10-20 08:44:11 +03:00
name : 'Podman Run Action'
2020-06-18 01:47:31 +03:00
description : 'Run a command in a new container'
inputs :
image :
description : 'Image'
required : true
options :
description : 'Options'
required : false
2020-06-18 04:00:26 +03:00
run :
description : 'Run command in container'
2020-06-18 01:47:31 +03:00
required : false
2020-06-18 04:21:47 +03:00
shell :
description : 'Use a specific shell'
required : false
2024-04-10 11:38:57 +03:00
default : /bin/sh
2020-06-18 01:47:31 +03:00
registry :
description : 'Registry'
required : false
username :
description : 'Username'
required : false
password :
description : 'Password'
required : false
2023-10-20 08:44:11 +03:00
podman_network :
description : 'Podman Network ID'
2021-01-28 19:00:10 +03:00
default : ${{ job.container.network }}
2021-02-26 20:51:48 +03:00
required : false
2020-06-18 01:47:31 +03:00
runs :
2023-10-20 08:44:11 +03:00
using : 'composite'
steps :
- name : Set environment
run : |
echo "INPUT_USERNAME=${{ inputs.username }}" >> "$GITHUB_ENV"
echo "INPUT_PASSWORD=${{ inputs.password }}" >> "$GITHUB_ENV"
echo "INPUT_IMAGE=${{ inputs.image }}" >> "$GITHUB_ENV"
echo "INPUT_PODMAN_NETWORK=${{ inputs.podman_network }}" >> "$GITHUB_ENV"
echo "INPUT_RUN=${{ inputs.run }}" >> "$GITHUB_ENV"
echo "INPUT_SHELL=${{ inputs.shell }}" >> "$GITHUB_ENV"
echo "INPUT_REGISTRY=${{ inputs.registry }}" >> "$GITHUB_ENV"
echo "INPUT_OPTIONS=${{ inputs.options }}" >> "$GITHUB_ENV"
shell : bash
- run : bash ${GITHUB_ACTION_PATH}/entrypoint.sh
shell : bash