From 690d7564321907b8ae013d11fd7393582876d59a Mon Sep 17 00:00:00 2001 From: Victor Sollerhed Date: Tue, 3 Oct 2023 14:26:52 +0200 Subject: [PATCH 1/2] Create GitHub action.yml As per docs: - https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#runs-for-docker-container-actions Signed-off-by: Victor Sollerhed --- action.yml | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 00000000..15998629 --- /dev/null +++ b/action.yml @@ -0,0 +1,6 @@ +name: container-diff + +runs: + using: 'docker' + image: 'action/Dockerfile' + From f4bd67bcd3c92a0c2d3bf8d8cd4f2b257577b52d Mon Sep 17 00:00:00 2001 From: Victor Sollerhed Date: Tue, 3 Oct 2023 14:45:04 +0200 Subject: [PATCH 2/2] action.yml should input `argument` as arg to container-diff Signed-off-by: Victor Sollerhed --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 15998629..62f483c6 100644 --- a/action.yml +++ b/action.yml @@ -1,6 +1,14 @@ name: container-diff +inputs: + argument: + required: true + description: "String of arguments to pass to the container-diff command" + default: help + runs: using: 'docker' image: 'action/Dockerfile' + args: + - ${{ inputs.argument }}