Skip to content

Commit

Permalink
initial docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-webdevelop committed May 28, 2024
1 parent f2ac255 commit d883d1f
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM alpine:3.10

COPY entrypoint.sh /entrypoint.sh

RUN

ENTRYPOINT ["/entrypoint.sh"]
19 changes: 19 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: docker action

description: docker action description

inputs:
name:
required: false
description: your name
default: Nemo

outputs:
message:
description: greeting message

runs:
using: docker
image: Dockerfile
args:
- ${{inputs.name}}
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/sh -l

echo "Hello $1"
time=$(date)
echo "message=Hello $1, time: $time" >> $GITHUB_OUTPUT

0 comments on commit d883d1f

Please sign in to comment.