init commit

Signed-off-by: Shakar <5h4k4r.b4kr@gmail.com>
This commit is contained in:
Shakar 2023-09-11 10:22:11 +03:00
parent cf16dfe5a0
commit 10fcf8a2cd
No known key found for this signature in database
GPG Key ID: DA55A26823AE3C28
4 changed files with 42 additions and 0 deletions

16
.github/actions/action.yaml vendored Normal file
View File

@ -0,0 +1,16 @@
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 }}

5
Dockerfile Normal file
View File

@ -0,0 +1,5 @@
FROM alpine:3.10
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "./entrypoint.sh" ]

21
README.md Normal file
View File

@ -0,0 +1,21 @@
# 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@v2
with:
who-to-greet: 'Mona the Octocat'

0
entrypoint.sh Executable file → Normal file
View File