Skip to content

feat(ci): Update release pipeline to include all architecture binaries - #742

Merged
javirln merged 1 commit into
mainfrom
feat/740-update-github-action
May 2, 2024
Merged

feat(ci): Update release pipeline to include all architecture binaries#742
javirln merged 1 commit into
mainfrom
feat/740-update-github-action

Conversation

@javirln

@javirln javirln commented May 2, 2024

Copy link
Copy Markdown
Member

This PR removes the constraint of only parsing amd64 binaries and instead, look for both arm64 and amd64 to comply with the new contract version introduced #741

Locally tested:
$ cat 'goreleaser.json' | jq -r '.[] | select(.type=="Binary" and .goos=="linux") | { "name": "\(.extra.ID)-\(.goos)-\(.goarch)", "path":"\(.path)"} '

{
  "name": "artifact-cas-linux-amd64",
  "path": "dist/artifact-cas_linux_amd64_v1/artifact-cas"
}
{
  "name": "control-plane-linux-amd64",
  "path": "dist/control-plane_linux_amd64_v1/control-plane"
}
{
  "name": "chainloop-plugin-discord-webhook-linux-amd64",
  "path": "dist/chainloop-plugin-discord-webhook_linux_amd64_v1/chainloop-plugin-discord-webhook"
}
{
  "name": "chainloop-plugin-smtp-linux-amd64",
  "path": "dist/chainloop-plugin-smtp_linux_amd64_v1/chainloop-plugin-smtp"
}
{
  "name": "chainloop-plugin-dependency-track-linux-amd64",
  "path": "dist/chainloop-plugin-dependency-track_linux_amd64_v1/chainloop-plugin-dependency-track"
}
{
  "name": "cli-linux-amd64",
  "path": "dist/cli_linux_amd64_v1/chainloop"
}
{
  "name": "cli-linux-arm64",
  "path": "dist/cli_linux_arm64/chainloop"
}

Signed-off-by: Javier Rodriguez <javier@chainloop.dev>
@javirln
javirln requested review from jiparis and migmartri May 2, 2024 10:25
@javirln javirln self-assigned this May 2, 2024

@migmartri migmartri left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks!

@javirln
javirln merged commit 21c752e into main May 2, 2024
@javirln
javirln deleted the feat/740-update-github-action branch May 2, 2024 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants