diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c941dcf --- /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-action" ] \ 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