diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..8232da9 --- /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..05ff2ca --- /dev/null +++ b/action-a/Dockerfile @@ -0,0 +1,14 @@ +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 " + +ADD entrypoint.sh /entrypoint.sh +RUN chmod +x /entrypoint.sh +ENTRYPOINT ["/entrypoint.sh"] diff --git a/action-a/entrypoint.sh b/action-a/entrypoint.sh new file mode 100644 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"