mirror of
https://github.com/SecurityBrewery/catalyst.git
synced 2025-12-12 10:12:53 +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:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
id-token: write
|
||||||
|
packages: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
goreleaser:
|
goreleaser:
|
||||||
@@ -21,6 +23,11 @@ jobs:
|
|||||||
|
|
||||||
- run: make build-ui
|
- run: make build-ui
|
||||||
|
|
||||||
|
- uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: "securitybrewery"
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- uses: goreleaser/goreleaser-action@v6
|
- uses: goreleaser/goreleaser-action@v6
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
|
|||||||
@@ -11,6 +11,14 @@ builds:
|
|||||||
- linux
|
- linux
|
||||||
- darwin
|
- 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:
|
archives:
|
||||||
- format: tar.gz
|
- format: tar.gz
|
||||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
# 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