Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ builds:
- -X main.Version={{ .Version }}
targets:
- linux_amd64
- linux_arm64
Comment thread
cubic-dev-ai[bot] marked this conversation as resolved.
- binary: artifact-cas
id: artifact-cas
main: ./app/artifact-cas/cmd
Expand All @@ -22,6 +23,7 @@ builds:
- -X main.Version={{ .Version }}
targets:
- linux_amd64
- linux_arm64
- binary: chainloop
id: cli
main: ./app/cli
Expand All @@ -43,18 +45,21 @@ builds:
main: ./app/controlplane/plugins/core/discord-webhook/v1/cmd
targets:
- linux_amd64
- linux_arm64
ldflags: ["{{ .Env.COMMON_LDFLAGS }}"]
- binary: chainloop-plugin-smtp
id: chainloop-plugin-smtp
main: ./app/controlplane/plugins/core/smtp/v1/cmd
targets:
- linux_amd64
- linux_arm64
ldflags: ["{{ .Env.COMMON_LDFLAGS }}"]
- binary: chainloop-plugin-dependency-track
id: chainloop-plugin-dependency-track
main: ./app/controlplane/plugins/core/dependency-track/v1/cmd
targets:
- linux_amd64
- linux_arm64
archives:
- format: binary
id: binaries-cli
Expand Down Expand Up @@ -98,6 +103,7 @@ dockers:
- chainloop-plugin-dependency-track
image_templates:
- "ghcr.io/chainloop-dev/chainloop/control-plane:{{ .Tag }}-amd64"
goarch: amd64
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -111,6 +117,7 @@ dockers:
- chainloop-plugin-dependency-track
image_templates:
- "ghcr.io/chainloop-dev/chainloop/control-plane:{{ .Tag }}-arm64"
goarch: arm64
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -123,6 +130,7 @@ dockers:
- app/controlplane/pkg/data/ent/migrate/migrations
image_templates:
- "ghcr.io/chainloop-dev/chainloop/control-plane-migrations:{{ .Tag }}-amd64"
goarch: amd64
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -133,6 +141,7 @@ dockers:
- app/controlplane/pkg/data/ent/migrate/migrations
image_templates:
- "ghcr.io/chainloop-dev/chainloop/control-plane-migrations:{{ .Tag }}-arm64"
goarch: arm64
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -145,6 +154,7 @@ dockers:
- artifact-cas
image_templates:
- "ghcr.io/chainloop-dev/chainloop/artifact-cas:{{ .Tag }}-amd64"
goarch: amd64
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -155,6 +165,7 @@ dockers:
- artifact-cas
image_templates:
- "ghcr.io/chainloop-dev/chainloop/artifact-cas:{{ .Tag }}-arm64"
goarch: arm64
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -167,6 +178,7 @@ dockers:
- cli
image_templates:
- "ghcr.io/chainloop-dev/chainloop/cli:{{ .Tag }}-amd64"
goarch: amd64
use: buildx
build_flag_templates:
- "--pull"
Expand All @@ -177,6 +189,7 @@ dockers:
- cli
image_templates:
- "ghcr.io/chainloop-dev/chainloop/cli:{{ .Tag }}-arm64"
goarch: arm64
use: buildx
build_flag_templates:
- "--pull"
Expand Down
6 changes: 3 additions & 3 deletions docs/build-and-packaging.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ All binaries and container images are built via [GoReleaser](https://goreleaser.
| `control-plane` | linux/amd64, linux/arm64 | Main backend service |
| `artifact-cas` | linux/amd64, linux/arm64 | Content-addressable storage proxy |
| `chainloop` (CLI) | darwin/amd64, darwin/arm64, linux/amd64, linux/arm64 | Multi-platform client |
| `chainloop-plugin-discord-webhook` | linux/amd64 | Bundled into control-plane image |
| `chainloop-plugin-smtp` | linux/amd64 | Bundled into control-plane image |
| `chainloop-plugin-dependency-track` | linux/amd64 | Bundled into control-plane image |
| `chainloop-plugin-discord-webhook` | linux/amd64, linux/arm64 | Bundled into control-plane image |
| `chainloop-plugin-smtp` | linux/amd64, linux/arm64 | Bundled into control-plane image |
| `chainloop-plugin-dependency-track` | linux/amd64, linux/arm64 | Bundled into control-plane image |

All binaries are statically compiled (`CGO_ENABLED=0`) and stripped (`-s -w`). Version info is injected via `-ldflags` from the git tag. CLI binaries are published as GitHub Release assets alongside a `checksums.txt`.

Expand Down
Loading