diff options
| author | Jan T <jans.tuomi@gmail.com> | 2019-08-21 13:49:27 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-21 13:49:27 +0300 |
| commit | 48844a5e382e3bee2ce9e5894cd9904a82764b86 (patch) | |
| tree | 10efcef3085ef0e08ab50b73ad0d53d0f01001fa | |
| parent | 26e1d5ee12f2485ea625c03d3ca4e731db7d4646 (diff) | |
| parent | 6690e87c9c091bc189abd85ae841345fed8efc48 (diff) | |
Merge pull request #2 from jantuomi/first-actionmaster
Add Dockerfile
| -rw-r--r-- | .github/workflows/main.yml | 12 | ||||
| -rw-r--r-- | action-a/Dockerfile | 13 | ||||
| -rwxr-xr-x | action-a/entrypoint.sh | 3 | ||||
| -rw-r--r-- | action-a/thing | 0 |
4 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..600954d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,12 @@ +name: A workflow for my Hello World file +on: push + +jobs: + build: + name: Hello world action + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: ./action-a + env: + MY_NAME: "Mona" diff --git a/action-a/Dockerfile b/action-a/Dockerfile new file mode 100644 index 0000000..58dbd77 --- /dev/null +++ b/action-a/Dockerfile @@ -0,0 +1,13 @@ +FROM debian:9.5-slim + +LABEL "com.github.actions.name"="Hello World" +LABEL "com.github.actions.description"="Write arguments to the standard output" +LABEL "com.github.actions.icon"="mic" +LABEL "com.github.actions.color"="purple" + +LABEL "repository"="http://github.com/octocat/hello-world" +LABEL "homepage"="http://github.com/actions" +LABEL "maintainer"="Octocat <octocat@github.com>" + +ADD entrypoint.sh /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/action-a/entrypoint.sh b/action-a/entrypoint.sh new file mode 100755 index 0000000..d262d66 --- /dev/null +++ b/action-a/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/sh -l + +sh -c "echo Hello world my name is $MY_NAME" diff --git a/action-a/thing b/action-a/thing new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/action-a/thing |
