From a2f24ac9f7d7970b0157f6e41e77b58aacbe080f Mon Sep 17 00:00:00 2001 From: Dan Potepa Date: Tue, 15 Feb 2022 16:55:57 +0000 Subject: [PATCH 1/2] testing actions --- Dockerfile | 9 +++++++++ action.yml | 12 ++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile create mode 100644 action.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a684ecb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM ruby:2.7 as builder + +WORKDIR /rumbda + +COPY . /rumbda + +RUN bundle install && gem build -o /rumbda/rumbda.gem rumbda.gemspec && gem install /rumbda/rumbda.gem && rm -rf /rumbda + +ENTRYPOINT [ "rumbda" ] \ No newline at end of file diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..c326435 --- /dev/null +++ b/action.yml @@ -0,0 +1,12 @@ +name: 'rumbda' +inputs: + command: + description: "the command to pass to rumbda" + required: false +runs: + using: 'docker' + image: 'Dockerfile' + args: + - ${{ inputs.command }} + + \ No newline at end of file From 8dc96dc1510393bc069c0eb810e42770eba1d1db Mon Sep 17 00:00:00 2001 From: Dan Potepa Date: Tue, 26 Jul 2022 12:26:48 +0100 Subject: [PATCH 2/2] use new command --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a684ecb..c941dcf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,4 +6,4 @@ COPY . /rumbda RUN bundle install && gem build -o /rumbda/rumbda.gem rumbda.gemspec && gem install /rumbda/rumbda.gem && rm -rf /rumbda -ENTRYPOINT [ "rumbda" ] \ No newline at end of file +ENTRYPOINT [ "rumbda-action" ] \ No newline at end of file