-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff17a1d
commit eed22f2
Showing
10 changed files
with
91 additions
and
109 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Build Image | ||
id: build-image | ||
uses: redhat-actions/buildah-build@v2 | ||
with: | ||
image: commentci | ||
tags: ${{ github.event.release.tag_name }} | ||
containerfiles: | | ||
./Dockerfile | ||
- name: Push to registry | ||
id: push-to-registry | ||
uses: redhat-actions/push-to-registry@v2 | ||
with: | ||
image: ${{ steps.build-image.outputs.image }} | ||
tags: ${{ steps.build-image.outputs.tags }} | ||
registry: ghcr.io/thelonkarrde | ||
username: ThelonKarrde | ||
password: ${{ secrets.GITHUB_TOKEN }} |
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,24 @@ | ||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
releases-matrix: | ||
name: Release Go Binary | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
goos: [linux, windows, darwin] | ||
goarch: [amd64, arm64] | ||
exclude: | ||
- goarch: arm64 | ||
goos: windows | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: wangyoucao577/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
goos: ${{ matrix.goos }} | ||
goarch: ${{ matrix.goarch }} | ||
binary_name: "commentci" | ||
goversion: 1.18 |
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,11 +1,11 @@ | ||
FROM golang:1.16 AS builder | ||
FROM golang:1.18 AS builder | ||
WORKDIR $GOPATH/src/commentci | ||
COPY go.mod go.sum ./ | ||
RUN go get -d -v -u all | ||
COPY ./ ./ | ||
RUN CGO_ENABLED=0 go build -tags netgo -a -o /go/bin/commentci ./cmd/main.go | ||
RUN CGO_ENABLED=0 go build -tags netgo -a -o /go/bin/commentci | ||
|
||
FROM alpine | ||
FROM alpine:3.15 | ||
COPY --from=builder /go/bin/commentci /go/bin/commentci | ||
ENTRYPOINT ["/go/bin/commentci"] | ||
CMD ["-h"] |
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,6 @@ | ||
REGISTRY=ghcr.io/thelonkarrde/commentci | ||
TAG=v0.3.0 | ||
|
||
.PHONY: docker | ||
docker: | ||
docker build -t ${REGISTRY}:${TAG} . |
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
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,10 +1,21 @@ | ||
module github.com/ThelonKarrde/CommentCI | ||
|
||
go 1.16 | ||
go 1.18 | ||
|
||
require ( | ||
github.com/akamensky/argparse v1.2.2 | ||
github.com/google/go-github v17.0.0+incompatible | ||
github.com/xanzy/go-gitlab v0.44.0 | ||
golang.org/x/oauth2 v0.0.0-20210201163806-010130855d6c | ||
) | ||
|
||
require ( | ||
github.com/golang/protobuf v1.4.2 // indirect | ||
github.com/google/go-querystring v1.0.0 // indirect | ||
github.com/hashicorp/go-cleanhttp v0.5.1 // indirect | ||
github.com/hashicorp/go-retryablehttp v0.6.4 // indirect | ||
golang.org/x/net v0.0.0-20200822124328-c89045814202 // indirect | ||
golang.org/x/time v0.0.0-20191024005414-555d28b269f0 // indirect | ||
google.golang.org/appengine v1.6.6 // indirect | ||
google.golang.org/protobuf v1.25.0 // indirect | ||
) |
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
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
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,7 @@ | ||
package main | ||
|
||
import "github.com/ThelonKarrde/CommentCI/cmd" | ||
|
||
func main() { | ||
cmd.Cmd() | ||
} |