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 <harry@razzle.cloud>
  • Loading branch information
Noxsios committed 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
@@ -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
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
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.