Skip to content

Commit

Permalink
Merge pull request #2 from lowply/lighter-image
Browse files Browse the repository at this point in the history
Update to v2
  • Loading branch information
lowply authored Aug 18, 2019
2 parents 0ad78d3 + 577822e commit cc1942a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 19 deletions.
20 changes: 9 additions & 11 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
FROM golang:1

LABEL "com.github.actions.name"="Auto Closer"
LABEL "com.github.actions.description"="Auto Closer"
LABEL "com.github.actions.icon"="check-circle"
LABEL "com.github.actions.color"="red"
LABEL "repository"="https://github.com/lowply/auto-closer"
LABEL "homepage"="https://github.com/lowply/auto-closer"
LABEL "maintainer"="Sho Mizutani <[email protected]>"
FROM golang:1 as builder

ENV CGO_ENABLED=0
ENV GOOS=linux
ENV GOARCH=amd64
WORKDIR /go/src
COPY src .
RUN GO111MODULE=on go build -o /go/bin/main

ADD entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]
FROM alpine
RUN apk add --no-cache ca-certificates
RUN update-ca-certificates
COPY --from=builder /go/bin/main /bin/main
ENTRYPOINT main
9 changes: 9 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: 'Auto Closer'
author: 'Sho Mizutani <[email protected]>'
description: 'A GitHub Action that closes all issues with a specific label while keeping the latest one(s) open.'
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'check-circle'
color: 'red'
8 changes: 0 additions & 8 deletions entrypoint.sh

This file was deleted.

0 comments on commit cc1942a

Please sign in to comment.