mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-07 15:52:47 +01:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f42de34780 | ||
|
|
88f56a2bdb | ||
|
|
88cc02b350 | ||
|
|
46f7815699 |
7
.github/workflows/goreleaser.yml
vendored
7
.github/workflows/goreleaser.yml
vendored
@@ -7,6 +7,8 @@ on:
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
id-token: write
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
goreleaser:
|
||||
@@ -21,6 +23,11 @@ jobs:
|
||||
|
||||
- run: make build-ui
|
||||
|
||||
- uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: "securitybrewery"
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: goreleaser/goreleaser-action@v6
|
||||
with:
|
||||
distribution: goreleaser
|
||||
|
||||
@@ -11,6 +11,14 @@ builds:
|
||||
- linux
|
||||
- darwin
|
||||
|
||||
dockers:
|
||||
- ids: [ catalyst ]
|
||||
dockerfile: docker/goreleaser.Dockerfile
|
||||
image_templates:
|
||||
- "ghcr.io/securitybrewery/catalyst:main"
|
||||
- "ghcr.io/securitybrewery/catalyst:latest"
|
||||
- "ghcr.io/securitybrewery/catalyst:{{.Tag}}"
|
||||
|
||||
archives:
|
||||
- format: tar.gz
|
||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
||||
|
||||
24
docker/Dockerfile
Normal file
24
docker/Dockerfile
Normal file
@@ -0,0 +1,24 @@
|
||||
FROM oven/bun:debian
|
||||
RUN apt-get update && apt-get install -y make
|
||||
COPY .. /tmp/catalyst
|
||||
|
||||
WORKDIR /tmp/catalyst
|
||||
|
||||
RUN make build-ui
|
||||
|
||||
FROM golang:1.23
|
||||
COPY --from=0 /tmp/catalyst /tmp/catalyst
|
||||
|
||||
WORKDIR /tmp/catalyst
|
||||
|
||||
RUN go build -o /usr/local/bin/catalyst
|
||||
|
||||
FROM ubuntu:24.04
|
||||
|
||||
COPY --from=1 /usr/local/bin/catalyst /usr/local/bin/catalyst
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
VOLUME /usr/local/bin/catalyst_data
|
||||
|
||||
CMD ["/usr/local/bin/catalyst", "serve", "--http", "0.0.0.0:8080"]
|
||||
9
docker/goreleaser.Dockerfile
Normal file
9
docker/goreleaser.Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
FROM ubuntu:24.04
|
||||
|
||||
COPY catalyst /usr/local/bin/catalyst
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
VOLUME /usr/local/bin/catalyst_data
|
||||
|
||||
CMD ["/usr/local/bin/catalyst", "serve", "--http", "0.0.0.0:8080"]
|
||||
Reference in New Issue
Block a user