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 }}"