Hello world docker action
This action prints "Hello World" or "Hello" + the name of a person to greet to the log.
Inputs
who-to-greet
Required The name of the person to greet. Default "World"
.
Outputs
time
The time we greeted you.
Example usage
uses: actions/hello-world-docker-action@v1 with: who-to-greet: 'Mona the Octocat'
Docker container action
Docker container action を使ってみる。
https://help.github.com/en/actions/creating-actions/creating-a-docker-container-action
# action.yml
name: 'Hello World'
description: 'Greet someone and record the time'
inputs:
who-to-greet: # id of input
description: 'Who to greet'
required: true
default: 'World'
outputs:
time: # id of output
description: 'The time we greeted you'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.who-to-greet }}