Skip to content

Commit

Permalink
Merge pull request #7 from lowply/v2
Browse files Browse the repository at this point in the history
Update to actions v2
  • Loading branch information
lowply authored Aug 18, 2019
2 parents 271b46e + 745da78 commit 15639d2
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"="Issue From Template"
LABEL "com.github.actions.description"="Issue From Template"
LABEL "com.github.actions.icon"="alert-circle"
LABEL "com.github.actions.color"="green"
LABEL "repository"="https://github.com/lowply/issue-from-template"
LABEL "homepage"="https://github.com/lowply/issue-from-template"
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: 'Issue From Template'
author: 'Sho Mizutani <[email protected]>'
description: 'A GitHub Action that opens an issue from an issue template'
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: 'alert-circle'
color: 'green'
8 changes: 0 additions & 8 deletions entrypoint.sh

This file was deleted.

0 comments on commit 15639d2

Please sign in to comment.