Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
66 changes: 33 additions & 33 deletions .config/golangci/golangci-soft.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
run:
tests: false
issues-exit-code: 0
tests: false
issues-exit-code: 0

issues:
include:
- EXC0001
- EXC0005
- EXC0011
- EXC0012
- EXC0013
include:
- EXC0001
- EXC0005
- EXC0011
- EXC0012
- EXC0013

max-issues-per-linter: 0
max-same-issues: 0
max-issues-per-linter: 0
max-same-issues: 0

linters:
enable:
- exhaustive
- goconst
- godot
- godox
- mnd
- gomoddirectives
- goprintffuncname
- misspell
- nakedret
- nestif
- noctx
- nolintlint
- prealloc
- wrapcheck
enable:
- exhaustive
- goconst
- godot
- godox
- mnd
- gomoddirectives
- goprintffuncname
- misspell
- nakedret
- nestif
- noctx
- nolintlint
- prealloc
- wrapcheck

# disable default linters, they are already enabled in .golangci.yml
disable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
# disable default linters, they are already enabled in .golangci.yml
disable:
- errcheck
- gosimple
- govet
- ineffassign
- staticcheck
- unused
44 changes: 22 additions & 22 deletions .config/golangci/golangci.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
run:
tests: false
tests: false

issues:
include:
- EXC0001
- EXC0005
- EXC0011
- EXC0012
- EXC0013
include:
- EXC0001
- EXC0005
- EXC0011
- EXC0012
- EXC0013

max-issues-per-linter: 0
max-same-issues: 0
max-issues-per-linter: 0
max-same-issues: 0

linters:
enable:
- bodyclose
- gofumpt
- goimports
- gosec
- nilerr
- revive
- rowserrcheck
- sqlclosecheck
- tparallel
- unconvert
- unparam
- whitespace
enable:
- bodyclose
- gofumpt
- goimports
- gosec
- nilerr
- revive
- rowserrcheck
- sqlclosecheck
- tparallel
- unconvert
- unparam
- whitespace
38 changes: 18 additions & 20 deletions .config/goreleaser/dockerize.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,25 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
version: 2
variables:
project_name: ""
project_name: ''
kos:
- repositories:
- ghcr.io/openecosystems/{{ .Var.project_name }}
#- openecosystems/{{ .Var.project_name }}
tags:
- "{{.Version}}"
- "{{.Tag}}"
- latest
- "{{if not .Prerelease}}stable{{end}}"
bare: true
preserve_import_paths: false
platforms:
- linux/amd64
- linux/arm64
- darwin/amd64
- darwin/arm64
- windows/amd64
- windows/arm64


- repositories:
- ghcr.io/openecosystems/{{ .Var.project_name }}
#- openecosystems/{{ .Var.project_name }}
tags:
- '{{.Version}}'
- '{{.Tag}}'
- latest
- '{{if not .Prerelease}}stable{{end}}'
bare: true
preserve_import_paths: false
platforms:
- linux/amd64
- linux/arm64
- darwin/amd64
- darwin/arm64
- windows/amd64
- windows/arm64
#dockers:
# - image_templates: [ "openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64" ]
# dockerfile: Dockerfile
Expand Down
72 changes: 36 additions & 36 deletions .config/goreleaser/goreleaser-cicd-image.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
version: 2
project_name: cicd-image
builds:
- skip: true
- skip: true
dockers:
- image_templates: ["ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64"]
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/openecosystems/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/openecosystems/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
- image_templates: ["ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8"]
goarch: arm64
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/openecosystems/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/openecosystems/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
- image_templates: ['ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64']
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/amd64
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/openecosystems/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/openecosystems/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
- image_templates: ['ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8']
goarch: arm64
dockerfile: Dockerfile
use: buildx
build_flag_templates:
- --platform=linux/arm64/v8
- --label=org.opencontainers.image.title={{ .ProjectName }}
- --label=org.opencontainers.image.description={{ .ProjectName }}
- --label=org.opencontainers.image.url=https://github.com/openecosystems/{{ .ProjectName }}
- --label=org.opencontainers.image.source=https://github.com/openecosystems/{{ .ProjectName }}
- --label=org.opencontainers.image.version={{ .Version }}
- --label=org.opencontainers.image.created={{ time "2006-01-02T15:04:05Z07:00" }}
- --label=org.opencontainers.image.revision={{ .FullCommit }}
- --label=org.opencontainers.image.licenses=Apache-2.0
docker_manifests:
- name_template: ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8
- name_template: ghcr.io/openecosystems/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8
- name_template: ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}
image_templates:
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8
- name_template: ghcr.io/openecosystems/{{ .ProjectName }}:latest
image_templates:
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-amd64
- ghcr.io/openecosystems/{{ .ProjectName }}:{{ .Version }}-arm64v8
136 changes: 68 additions & 68 deletions .config/goreleaser/goreleaser.cli.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,79 +2,79 @@

version: 2
variables:
main: ""
binary_name: ""
description: ""
maintainer: ""
homepage: "https://www.openecosystems.com"
brew_commit_author_name: ""
brew_commit_author_email: ""
brew_owner: openecosystems
docker_io_registry_owner: openecosystems
ghcr_io_registry_owner: openecosystems
aur_project_name: ""
path_to_repo_root: ""
path_to_project: ""
nightly_tag_name: ""
main: ''
binary_name: ''
description: ''
maintainer: ''
homepage: 'https://www.openecosystems.com'
brew_commit_author_name: ''
brew_commit_author_email: ''
brew_owner: openecosystems
docker_io_registry_owner: openecosystems
ghcr_io_registry_owner: openecosystems
aur_project_name: ''
path_to_repo_root: ''
path_to_project: ''
nightly_tag_name: ''

builds:
- env:
- CGO_ENABLED=0
no_main_check: true
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
goarm:
- "7"
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarm: "7"
- env:
- CGO_ENABLED=0
no_main_check: true
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
goarm:
- '7'
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarm: '7'

archives:
- format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
wrap_in_directory: true
files:
- README*
- "{{ .Var.path_to_repo_root }}LICENSE*"
- completions/*
- format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
wrap_in_directory: true
files:
- README*
- '{{ .Var.path_to_repo_root }}LICENSE*'
- completions/*

brews:
- repository:
owner: "{{ .Var.brew_owner }}"
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
commit_author:
name: "{{ .Var.brew_commit_author_name }}"
email: "{{ .Var.brew_commit_author_email }}"
homepage: "{{ .Var.homepage }}"
description: "{{ .Var.description }}"
# dependencies:
# - name: ffmpeg
# - name: ttyd
install: |-
bin.install "{{ with .Var.binary_name }}{{ . }}{{ else }}{{ .ProjectName }}{{ end }}"
bash_completion.install "completions/{{ .ProjectName }}.bash" => "{{ .ProjectName }}"
zsh_completion.install "completions/{{ .ProjectName }}.zsh" => "_{{ .ProjectName }}"
fish_completion.install "completions/{{ .ProjectName }}.fish"
- repository:
owner: '{{ .Var.brew_owner }}'
name: homebrew-tap
token: '{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}'
commit_author:
name: '{{ .Var.brew_commit_author_name }}'
email: '{{ .Var.brew_commit_author_email }}'
homepage: '{{ .Var.homepage }}'
description: '{{ .Var.description }}'
# dependencies:
# - name: ffmpeg
# - name: ttyd
install: |-
bin.install "{{ with .Var.binary_name }}{{ . }}{{ else }}{{ .ProjectName }}{{ end }}"
bash_completion.install "completions/{{ .ProjectName }}.bash" => "{{ .ProjectName }}"
zsh_completion.install "completions/{{ .ProjectName }}.zsh" => "_{{ .ProjectName }}"
fish_completion.install "completions/{{ .ProjectName }}.fish"

changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
Loading
Loading