Skip to content

Commit

Permalink
fix: action has its own dockerfile because of requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
gumieri committed Jun 21, 2024
1 parent 3a5c76d commit 0cf8e8c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions action.Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 0cf8e8c

Please sign in to comment.