1
0
mirror of https://github.com/kairos-io/kairos-sdk.git synced 2025-05-13 10:34:39 +00:00

Remove variant from base tag ()

This commit is contained in:
Mauro Morales 2023-12-07 12:03:02 +01:00 committed by GitHub
parent 29fc4851f4
commit 5a078882be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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) {