Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dviejokfs committed Jan 16, 2022
0 parents commit 418c235
Show file tree
Hide file tree
Showing 62 changed files with 38,279 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/goreleaser.yml
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 }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
.dev
keystore
37 changes: 37 additions & 0 deletions .golangci.yml
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
68 changes: 68 additions & 0 deletions .goreleaser.yml
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
16 changes: 16 additions & 0 deletions .gqlgen.yml
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
Loading

0 comments on commit 418c235

Please sign in to comment.