-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 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,20 @@ | ||
# Name the portage image | ||
FROM gentoo/portage:latest as portage | ||
|
||
# Based on the stage3 image | ||
FROM gentoo/stage3:latest | ||
|
||
# Copy the entire porage volume in | ||
COPY --from=portage /var/db/repos/gentoo /var/db/repos/gentoo | ||
|
||
# Emerge pycargoebuild | ||
RUN emerge -qv app-portage/pycargoebuild | ||
|
||
# Set the working directory inside the container | ||
WORKDIR /usr/src | ||
|
||
# Copy any source file(s) required for the action | ||
COPY entrypoint.sh . | ||
|
||
# Configure the container to be run as an executable | ||
ENTRYPOINT ["/usr/src/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 |
---|---|---|
@@ -1 +1,24 @@ | ||
# testing | ||
|
||
# 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' | ||
|
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,20 @@ | ||
name: 'Hello World' | ||
description: 'Greet someone and record the time' | ||
|
||
# Define your inputs here. | ||
inputs: | ||
who-to-greet: | ||
description: 'Who to greet' | ||
required: true | ||
default: 'World' | ||
|
||
# Define your outputs here. | ||
outputs: | ||
time: | ||
description: 'The time we greeted you' | ||
|
||
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,5 @@ | ||
#!/bin/bash -l | ||
|
||
echo "Hello $1" | ||
time=$(date) | ||
echo "time=$time" >> $GITHUB_OUTPUT |