Compare commits

...

7 Commits

Author SHA1 Message Date
Jonas Plum
d9f759c879 fix: ui basePath (#1152) 2025-09-21 09:02:00 +00:00
dependabot[bot]
1e3f2f24dc build(deps): bump github.com/go-chi/chi/v5 from 5.2.1 to 5.2.2 (#1149)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-09-04 07:02:08 +02:00
Jonas Plum
3cb097126c fix: rename binary (#1150) 2025-09-04 04:52:55 +00:00
Jonas Plum
df96362c3c fix: release docker ids (#1148) 2025-09-02 23:58:54 +00:00
Jonas Plum
377d2dad5f fix: cross-compile (#1147) 2025-09-02 23:27:23 +00:00
Jonas Plum
87fc0e6567 fix: working directory (#1146) 2025-09-02 22:02:52 +00:00
Jonas Plum
06fdae4ab9 fix: adapt goreleaser for cross compilation (#1145) 2025-09-02 21:43:33 +00:00
5 changed files with 90 additions and 17 deletions

View File

@@ -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

View File

@@ -5,14 +5,84 @@ before:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
- id: darwin-amd64
main: ./
binary: catalyst
goos:
- darwin
goarch:
- amd64
env:
- CGO_ENABLED=1
- CC=o64-clang
- CXX=o64-clang++
flags:
- -mod=readonly
ldflags:
- -s -w -X main.version={{.Version}}
- id: linux-arm64
main: ./
binary: catalyst
goos:
- linux
- darwin
goarch:
- arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
flags:
- -mod=readonly
ldflags:
- -s -w -X main.version={{.Version}}
- id: linux-amd64
main: ./
binary: catalyst
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=1
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
flags:
- -mod=readonly
ldflags:
- -s -w -X main.version={{.Version}}
- id: windows-amd64
main: ./
binary: catalyst
goos:
- windows
goarch:
- amd64
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
flags:
- -mod=readonly
ldflags:
- -s -w -X main.version={{.Version}}
- id: windows-arm64
main: ./
binary: catalyst
goos:
- windows
goarch:
- arm64
env:
- CGO_ENABLED=1
- CC=/llvm-mingw/bin/aarch64-w64-mingw32-gcc
- CXX=/llvm-mingw/bin/aarch64-w64-mingw32-g++
flags:
- -mod=readonly
ldflags:
- -s -w -X main.version={{.Version}}
dockers:
- ids: [ catalyst ]
- ids: [ linux-amd64 ]
dockerfile: docker/Dockerfile
image_templates:
- "ghcr.io/securitybrewery/catalyst:main"
@@ -22,7 +92,7 @@ dockers:
- docker/entrypoint.sh
archives:
- format: tar.gz
- formats: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
@@ -34,7 +104,7 @@ archives:
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
formats: zip
changelog:
sort: asc

2
go.mod
View File

@@ -11,7 +11,7 @@ replace github.com/tus/tusd/v2 v2.8.0 => github.com/SecurityBrewery/tusd/v2 v2.0
require (
github.com/brianvoe/gofakeit/v7 v7.2.1
github.com/go-chi/chi/v5 v5.2.1
github.com/go-chi/chi/v5 v5.2.2
github.com/go-co-op/gocron/v2 v2.16.2
github.com/golang-jwt/jwt/v5 v5.2.2
github.com/google/martian/v3 v3.3.3

4
go.sum
View File

@@ -34,8 +34,8 @@ github.com/fsnotify/fsnotify v1.8.0 h1:dAwr6QBTBZIkG8roQaJjGof0pp0EeF+tNV7YBP3F/
github.com/fsnotify/fsnotify v1.8.0/go.mod h1:8jBTzvmWwFyi3Pb8djgCCO5IBqzKJ/Jwo8TRcHyHii0=
github.com/getkin/kin-openapi v0.132.0 h1:3ISeLMsQzcb5v26yeJrBcdTCEQTag36ZjaGk7MIRUwk=
github.com/getkin/kin-openapi v0.132.0/go.mod h1:3OlG51PCYNsPByuiMB0t4fjnNlIDnaEDsjiKUV8nL58=
github.com/go-chi/chi/v5 v5.2.1 h1:KOIHODQj58PmL80G2Eak4WdvUzjSJSm0vG72crDCqb8=
github.com/go-chi/chi/v5 v5.2.1/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops=
github.com/go-chi/chi/v5 v5.2.2 h1:CMwsvRVTbXVytCk1Wd72Zy1LAsAh9GxMmSNWLHCG618=
github.com/go-chi/chi/v5 v5.2.2/go.mod h1:L2yAIGWB3H+phAw1NxKwWM+7eUH/lU8pOMm5hHcoops=
github.com/go-co-op/gocron/v2 v2.16.2 h1:r08P663ikXiulLT9XaabkLypL/W9MoCIbqgQoAutyX4=
github.com/go-co-op/gocron/v2 v2.16.2/go.mod h1:4YTLGCCAH75A5RlQ6q+h+VacO7CgjkgP0EJ+BEOXRSI=
github.com/go-logr/logr v1.4.2 h1:6pFjapn8bFcIbiKo3XT4j/BhANplGihG6tvd+8rYgrY=

View File

@@ -5,7 +5,7 @@ export function useAPI() {
const authStore = useAuthStore()
return new DefaultApi(
new Configuration({
basePath: 'http://localhost:8090/api',
basePath: '/api',
headers: {
'Content-Type': 'application/json',
Accept: 'application/json',