Skip to content

Commit

Permalink
feat: Add docker support for action
Browse files Browse the repository at this point in the history
  • Loading branch information
imskr committed Jul 8, 2022
1 parent 1dced69 commit 6a14be1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM golang:1.18 as builder

WORKDIR /app
COPY . /app/

RUN go get -d -v

# Statically compile our app for use in a distroless container
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -v -o app .

# A distroless container image with some basics like SSL certificates
# https://github.com/GoogleContainerTools/distroless
FROM gcr.io/distroless/static

COPY --from=builder /app/app /app

ENTRYPOINT ["/app"]
21 changes: 18 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
name: "Readme update Actions"
description: "Fetch latest blog posts and add it to GitHub profile's readME dynamically"
description: "Fetch latest blog posts and add it to GitHub profile's readme dynamically"
author: "Shubham Kumar"
inputs:
include:
# inputs:
# readme_path:
# max_post:
# rss_list:
# commit_user:
# commit_email:
# commit_message:
# outputs:
# result_post:

runs:
using: "docker"
image: "Dockerfile"

branding:
icon: 'file-text'
color: 'red'

0 comments on commit 6a14be1

Please sign in to comment.