From 14cd925fb2102fcbb9ea387b24576e14da9a53b5 Mon Sep 17 00:00:00 2001 From: goaction Date: Sat, 17 Jul 2021 04:55:30 +0000 Subject: [PATCH] Update action files --- Dockerfile | 11 +++++++++++ action.yml | 18 ++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 Dockerfile create mode 100644 action.yml diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..1253dfc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,11 @@ +# File generated by github.com/posener/goaction. DO NOT EDIT. + + +FROM golang:1.14.2-alpine3.11 +RUN apk add git + +COPY . /home/src +WORKDIR /home/src +RUN go build -o /bin/action ./ + +ENTRYPOINT [ "/bin/action" ] diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..1c23235 --- /dev/null +++ b/action.yml @@ -0,0 +1,18 @@ +# File generated by github.com/posener/goaction. DO NOT EDIT. + +name: goaction-example +inputs: + input: + default: . + description: "Input Directory" + required: false + output: + default: . + description: "Output Directory" + required: false +runs: + using: docker + image: Dockerfile + args: + - "-input=${{ inputs.input }}" + - "-output=${{ inputs.output }}"