From 1e039a6b0e04bfb54bf48c0210f860a9774bdfae Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Thu, 17 Oct 2019 16:55:51 -0700 Subject: [PATCH 1/4] add dockerfile for action the first --- action-a/Dockerfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 action-a/Dockerfile 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"] From fee246a668cfb8002a2ea59c91698e42069a3039 Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Thu, 17 Oct 2019 17:01:06 -0700 Subject: [PATCH 2/4] add the actual entrypoint --- action-a/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 action-a/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" From bb07b6f50065377e1e10f2b04ab555764dcbcbb0 Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Thu, 17 Oct 2019 17:02:59 -0700 Subject: [PATCH 3/4] start the workflow --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..737a2eb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,3 @@ +--- +name: A workflow for my Hello World file +on: push From db52902fa405f66099ae81ad5b9e6b774b770c87 Mon Sep 17 00:00:00 2001 From: Gregg Van Hove Date: Thu, 17 Oct 2019 17:04:59 -0700 Subject: [PATCH 4/4] specify a job for the workflow --- .github/workflows/main.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 737a2eb..8232da9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +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"