Add initial project structure with core functionality
- Created a new Go module named 'teleport' for secure port forwarding. - Added essential files including .gitignore, LICENSE, and README.md with project details. - Implemented configuration management with YAML support in config package. - Developed core client and server functionalities for handling port forwarding. - Introduced DNS server capabilities and integrated logging with sanitization. - Established rate limiting and metrics tracking for performance monitoring. - Included comprehensive tests for core components and functionalities. - Set up CI workflows for automated testing and release management using Gitea actions.
This commit is contained in:
93
.goreleaser.yaml
Normal file
93
.goreleaser.yaml
Normal file
@@ -0,0 +1,93 @@
|
||||
version: 2
|
||||
|
||||
before:
|
||||
hooks:
|
||||
- go mod tidy -v
|
||||
|
||||
builds:
|
||||
- id: linux
|
||||
binary: teleport
|
||||
main: ./cmd/teleport
|
||||
ldflags:
|
||||
- -s
|
||||
- -w
|
||||
- -extldflags "-static"
|
||||
- -X teleport/pkg/version.Version={{.Version}}
|
||||
- -X teleport/pkg/version.GitCommit={{.FullCommit}}
|
||||
- -X teleport/pkg/version.BuildDate={{.Date}}
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
|
||||
- id: windows
|
||||
binary: teleport
|
||||
main: ./cmd/teleport
|
||||
ldflags:
|
||||
- -s
|
||||
- -w
|
||||
- -extldflags "-static"
|
||||
- -X teleport/pkg/version.Version={{.Version}}
|
||||
- -X teleport/pkg/version.GitCommit={{.FullCommit}}
|
||||
- -X teleport/pkg/version.BuildDate={{.Date}}
|
||||
- -H windowsgui
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
|
||||
- id: windows-console
|
||||
binary: teleport-console
|
||||
main: ./cmd/teleport
|
||||
ldflags:
|
||||
- -s
|
||||
- -w
|
||||
- -extldflags "-static"
|
||||
- -X teleport/pkg/version.Version={{.Version}}
|
||||
- -X teleport/pkg/version.GitCommit={{.FullCommit}}
|
||||
- -X teleport/pkg/version.BuildDate={{.Date}}
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- windows
|
||||
goarch:
|
||||
- amd64
|
||||
|
||||
checksum:
|
||||
name_template: "checksums.txt"
|
||||
|
||||
archives:
|
||||
- id: default
|
||||
name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
|
||||
formats: tar.gz
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
formats: zip
|
||||
files:
|
||||
- README.md
|
||||
- LICENSE
|
||||
builds:
|
||||
- linux
|
||||
- windows
|
||||
- windows-console
|
||||
allow_different_binary_count: true
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
filters:
|
||||
exclude:
|
||||
- "^docs:"
|
||||
- "^test:"
|
||||
|
||||
release:
|
||||
name_template: "{{ .ProjectName }}-{{ .Version }}"
|
||||
|
||||
gitea_urls:
|
||||
api: https://git.s1d3sw1ped.com/api/v1
|
||||
download: https://git.s1d3sw1ped.com
|
||||
|
||||
Reference in New Issue
Block a user