diff --git a/action.Dockerfile b/action.Dockerfile new file mode 100644 index 0000000..800284d --- /dev/null +++ b/action.Dockerfile @@ -0,0 +1,18 @@ +FROM golang:1 AS build + +RUN apk update && apk add --no-cache ca-certificates + +WORKDIR $GOPATH/src/gumieri/ecsctl + +COPY go.mod go.sum ./ + +RUN go mod download + +COPY ./*.go ./ +COPY ./cmd/*.go ./cmd/ + +ARG VERSION + +RUN CGO_ENABLED=0 go build -ldflags "-w -s -X github.com/gumieri/ecsctl/cmd.Version=${VERSION}" -o /usr/local/bin/ecsctl + +ENTRYPOINT ["/usr/local/bin/ecsctl"] diff --git a/action.yml b/action.yml index 18bf17a..67016c0 100644 --- a/action.yml +++ b/action.yml @@ -1,13 +1,13 @@ name: 'ecsctl' description: 'Manage AWS Elastic Container Service (ECS)' inputs: - command: # id of input + command: description: 'inform the command and args as in cli. Check for the documentation to know all commands.' required: true runs: using: 'docker' - image: 'Dockerfile' + image: 'action.Dockerfile' args: - ${{ inputs.command }}