-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from lowply/lighter-image
Update to v2
- Loading branch information
Showing
3 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file was deleted.
Oops, something went wrong.