From a08795caa58b5c99ae049570153f6052e0baab3e Mon Sep 17 00:00:00 2001 From: Arjit Chauhan Date: Wed, 9 Oct 2019 10:31:02 +0530 Subject: [PATCH 1/4] Update Dockerfile --- 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 e4a7c2dec95a43bc3f879754d5c7709bab29721f Mon Sep 17 00:00:00 2001 From: Arjit Chauhan Date: Wed, 9 Oct 2019 10:41:02 +0530 Subject: [PATCH 2/4] Create entrypoint.sh --- action-a/entrypoint.sh | 4 ++++ 1 file changed, 4 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..344c1b5 --- /dev/null +++ b/action-a/entrypoint.sh @@ -0,0 +1,4 @@ + +#!/bin/sh -l + +sh -c "echo Hello world my name is $MY_NAME" From 34f2f9efe6cb0359f52789197a0ca0bad7f99a86 Mon Sep 17 00:00:00 2001 From: Arjit Chauhan Date: Wed, 9 Oct 2019 11:11:25 +0530 Subject: [PATCH 3/4] Update main.yml --- .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..244026b --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,3 @@ +name: A workflow for my Hello World file + +on: push From d7647f80eb1eaa1909f6a943dda0dae9629017db Mon Sep 17 00:00:00 2001 From: Arjit Chauhan Date: Wed, 9 Oct 2019 11:14:43 +0530 Subject: [PATCH 4/4] Update main.yml --- .github/workflows/main.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 244026b..54bf21f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,3 +1,20 @@ 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: "arjitc12"