Skip to content

Commit

Permalink
[chore] Ensure partial is generated (#478)
Browse files Browse the repository at this point in the history
* Ensure partial is generated

* run make generate-goreleaser

* use a real variable name
  • Loading branch information
TylerHelmuth committed Feb 15, 2024
1 parent 5671ef8 commit e9da182
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ docker_manifests:
- ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:latest-arm64
- ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:latest-ppc64le
- ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:latest-s390x

signs:
- cmd: cosign
args:
Expand Down
11 changes: 11 additions & 0 deletions cmd/goreleaser/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ func main() {

project := internal.Generate(internal.ImagePrefixes, dists)

partial := map[string]any{
"partial": map[string]any{
"by": "target",
},
}
e := yaml.NewEncoder(os.Stdout)
e.SetIndent(2)
if err := e.Encode(partial); err != nil {
log.Fatal(err)
}

if err := yaml.NewEncoder(os.Stdout).Encode(&project); err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit e9da182

Please sign in to comment.