mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-06 07:12:46 +01:00
Compare commits
3 Commits
v0.15.0-rc
...
v0.15.0-rc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
87fc0e6567 | ||
|
|
06fdae4ab9 | ||
|
|
27129f24d5 |
17
.github/workflows/goreleaser.yml
vendored
17
.github/workflows/goreleaser.yml
vendored
@@ -28,10 +28,13 @@ jobs:
|
||||
registry: ghcr.io
|
||||
username: "securitybrewery"
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: '~> v2'
|
||||
args: release --clean
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Run GoReleaser
|
||||
run: |
|
||||
docker run --rm --privileged \
|
||||
-v `pwd`:/go/src/github.com/SecurityBrewery/catalyst \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-w /go/src/github.com/SecurityBrewery/catalyst \
|
||||
-e CGO_ENABLED=1 \
|
||||
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \
|
||||
ghcr.io/goreleaser/goreleaser-cross:latest \
|
||||
release --clean
|
||||
@@ -6,7 +6,7 @@ before:
|
||||
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
- CGO_ENABLED=1
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
|
||||
11
main.go
11
main.go
@@ -40,8 +40,11 @@ func main() {
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "serve",
|
||||
Usage: "Start the Catalyst server",
|
||||
Name: "serve",
|
||||
Usage: "Start the Catalyst server",
|
||||
Flags: []cli.Flag{
|
||||
&cli.StringFlag{Name: "http", Usage: "HTTP listen address", Value: ":8090"},
|
||||
},
|
||||
Action: serve,
|
||||
},
|
||||
{
|
||||
@@ -108,8 +111,10 @@ func serve(ctx context.Context, command *cli.Command) error {
|
||||
|
||||
defer cleanup()
|
||||
|
||||
addr := command.String("http")
|
||||
|
||||
server := &http.Server{
|
||||
Addr: ":8090",
|
||||
Addr: addr,
|
||||
Handler: catalyst,
|
||||
ReadTimeout: 10 * time.Minute,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user