generated from ps-actions-sandbox/ActionsFundamentals
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from ps-actions-sandbox/createAction
Create action
- Loading branch information
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: CI build for container action | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
container-run: | ||
runs-on: unbuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@4 | ||
- name: run my container action | ||
uses: ./DockerAction | ||
with: | ||
who-to-greet: everyone |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM alpine:3.10 | ||
|
||
COPY entrypoint.sh /entrypoint.sh | ||
|
||
RUN chmod +x entrypoint.sh | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: 'Docker Action' | ||
inputs: | ||
who-to-greet: | ||
description: who's there? | ||
default: attendees | ||
outputs: | ||
time: | ||
description: 'when it happened' | ||
runs: | ||
using: docker | ||
image: DockerFile | ||
args: | ||
- ${{ inputs.who-to-greet }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
echo "hello $1" | ||
|
||
echo "time=$(date)" >> $GITHUB_OUTPUT |