Skip to content

Commit

Permalink
fix(release): hotfix publish not respecting source package architec…
Browse files Browse the repository at this point in the history
…ture (#2376)

## Description

`zarf package publish <src>` would publish to CLI/runtime arch only and
not respect source package's architecture, leading to packages existing
at the wrong platform in the published index.

## Type of change

- [x] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Other (security config, docs update, etc)

## Checklist before merging

- [ ] Test, docs, adr added or updated as needed
- [x] [Contributor Guide
Steps](https://github.com/defenseunicorns/zarf/blob/main/CONTRIBUTING.md#developer-workflow)
followed

Signed-off-by: razzle <[email protected]>
  • Loading branch information
Noxsios authored Mar 11, 2024
1 parent 267c165 commit 6739602
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Zarf Packages on Tag
name: Release CLI and Packages on Tag

permissions:
contents: read
Expand Down
3 changes: 3 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ brews:
owner: defenseunicorns
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
pull_request:
enabled: true

commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://zarf.dev/"
description: "DevSecOps for Air Gap"
Expand Down
2 changes: 1 addition & 1 deletion src/pkg/packager/publish.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (p *Packager) Publish() (err error) {
if p.cfg.CreateOpts.IsSkeleton {
platform = zoci.PlatformForSkeleton()
} else {
platform = oci.PlatformForArch(config.GetArch())
platform = oci.PlatformForArch(p.arch)
}
remote, err := zoci.NewRemote(ref, platform)
if err != nil {
Expand Down

0 comments on commit 6739602

Please sign in to comment.