Skip to content

Commit

Permalink
Push multi-platform images to GitHub Container Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
IngmarStein committed May 24, 2024
1 parent 6271486 commit c0087c3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

permissions:
contents: write
packages: write
attestations: write

jobs:
goreleaser:
Expand Down
19 changes: 15 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ builds:
- -s -w -X github.com/ingmarstein/tcp-multiplexer/cmd.version={{.Version}} -X github.com/ingmarstein/tcp-multiplexer/cmd.commit={{.Commit}} -X github.com/ingmarstein/tcp-multiplexer/cmd.date={{.Date}} -X github.com/ingmarstein/tcp-multiplexer/cmd.builtBy=goreleaser
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arch64
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
checksum:
Expand All @@ -24,6 +26,15 @@ changelog:
exclude:
- '^docs:'
- '^test:'
dockers:
- image_templates:
- ingmarstein/tcp-multiplexer
kos:
- repository: ghcr.io/ingmarstein/tcp-multiplexer
tags:
- '{{.Version}}'
- latest
bare: true
preserve_import_paths: false
platforms:
- linux/amd64
- linux/arm64
docker_signs:
- artifacts: manifests
2 changes: 1 addition & 1 deletion pkg/multiplexer/multiplexer.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ L:
func (mux *Multiplexer) handleConnection(conn net.Conn, sender chan<- *reqContainer) {
defer func(c net.Conn) {
if logrus.IsLevelEnabled(logrus.DebugLevel) {
logrus.Debugf("Closing client connecion: %v", c.RemoteAddr())
logrus.Debugf("Closing client connection: %v", c.RemoteAddr())
}
err := c.Close()
sender <- &reqContainer{typ: Disconnection}
Expand Down

0 comments on commit c0087c3

Please sign in to comment.