-
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
0 parents
commit 418c235
Showing
62 changed files
with
38,279 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: goreleaser | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: 1.16 | ||
- | ||
name: Docker Login | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: quay.io | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v2 | ||
with: | ||
version: latest | ||
args: release --rm-dist | ||
env: | ||
GITHUB_TOKEN: ${{ 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,3 @@ | ||
.idea | ||
.dev | ||
keystore |
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,37 @@ | ||
run: | ||
skip-dirs: | ||
- internal | ||
|
||
linters-settings: | ||
golint: | ||
min-confidence: 0 | ||
|
||
misspell: | ||
locale: US | ||
|
||
linters: | ||
enable: | ||
- typecheck | ||
- goimports | ||
- misspell | ||
- govet | ||
- golint | ||
- ineffassign | ||
- gosimple | ||
- deadcode | ||
- structcheck | ||
|
||
issues: | ||
exclude-use-default: false | ||
exclude: | ||
- should have a package comment | ||
- error strings should not be capitalized or end with punctuation or a newline | ||
exclude-rules: | ||
# Exclude linters from running on auto-generated files. | ||
- path: pkg/client | ||
linters: | ||
- golint | ||
- deadcode | ||
|
||
service: | ||
golangci-lint-version: 1.27.0 # use the fixed version to not introduce new linters unexpectedly |
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,68 @@ | ||
# This is an example goreleaser.yaml file with some sane defaults. | ||
# Make sure to check the documentation at http://goreleaser.com | ||
project_name: hlf-cc-dev | ||
|
||
release: | ||
name_template: "Version {{.Version}}" | ||
github: | ||
owner: kfsoftware | ||
name: hlf-cc-dev | ||
extra_files: | ||
- glob: "*.minisig" | ||
- glob: "*.zip" | ||
|
||
before: | ||
hooks: | ||
- go mod tidy | ||
- go mod download | ||
|
||
builds: | ||
- | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
env: | ||
- CGO_ENABLED=0 | ||
ldflags: | ||
- -s -w -X main.version={{.Tag}} | ||
flags: | ||
- -trimpath | ||
- | ||
id: hlf-cc-dev | ||
dir: hlf-cc-dev | ||
binary: hlf-cc-dev | ||
goos: | ||
- linux | ||
- darwin | ||
- windows | ||
- freebsd | ||
goarch: | ||
- amd64 | ||
env: | ||
- CGO_ENABLED=0 | ||
ldflags: | ||
- -s -w -X main.version={{.Tag}} | ||
flags: | ||
- -trimpath | ||
|
||
archives: | ||
- | ||
id: hlf-cc-dev | ||
format: zip | ||
allow_different_binary_count: true | ||
|
||
dockers: | ||
- | ||
# GOOS of the built binary that should be used. | ||
goos: linux | ||
# GOARCH of the built binary that should be used. | ||
goarch: amd64 | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- "quay.io/kfsoftware/hlf-cc-dev:{{ .Tag }}" | ||
- "quay.io/kfsoftware/hlf-cc-dev:latest" | ||
extra_files: | ||
- LICENSE | ||
- README.md | ||
- CREDITS |
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,16 @@ | ||
schema: | ||
- ./schema/**/*.graphql | ||
federation: | ||
filename: gql/federation.go | ||
package: gql | ||
|
||
resolver: | ||
filename: gql/resolvers/resolvers.go | ||
package: resolvers | ||
type: Resolver | ||
exec: | ||
filename: gql/generated.go | ||
package: gql | ||
model: | ||
filename: gql/models/models.go | ||
package: models |
Oops, something went wrong.