Skip to content

Commit

Permalink
Remove variant from base tag (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
mauromorales authored Dec 7, 2023
1 parent 29fc485 commit 5a07888
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion versioneer/base_name_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ var _ = Describe("BaseContainerName", func() {
BeforeEach(func() {
id = "master"
registryAndOrg = "quay.io/kairos"
expectedName = "quay.io/kairos/opensuse:leap-15.5-standard-amd64-generic-master"
expectedName = "quay.io/kairos/opensuse:leap-15.5-amd64-generic-master"
})
It("returns the name", func() {
name, err := artifact.BaseContainerName(registryAndOrg, id)
Expand Down
9 changes: 8 additions & 1 deletion versioneer/versioneer.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,14 @@ func (a *Artifact) BaseContainerName(registryAndOrg, id string) (string, error)
}

func (a *Artifact) BaseTag() (string, error) {
return a.commonName()
if err := a.Validate(); err != nil {
return "", err
}

result := fmt.Sprintf("%s-%s-%s",
a.FlavorRelease, a.Arch, a.Model)

return result, nil
}

func (a *Artifact) Tag() (string, error) {
Expand Down

0 comments on commit 5a07888

Please sign in to comment.