test: add arch to the generate test artifact names
To prevent conflicts sooner rather than later. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
18258238d9
commit
f1b7476da5
1 changed files with 4 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ import (
|
|||
"github.com/BurntSushi/toml"
|
||||
"github.com/google/go-cmp/cmp"
|
||||
"github.com/google/uuid"
|
||||
"github.com/osbuild/osbuild-composer/internal/common"
|
||||
"github.com/osbuild/osbuild-composer/internal/distro"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
|
@ -239,5 +240,7 @@ func GenerateCIArtifactName(prefix string) (string, error) {
|
|||
return "", fmt.Errorf("The environment variables must specify BRANCH_NAME, BUILD_ID, and DISTRO_CODE")
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s%s-%s-%s", prefix, distroCode, branchName, buildId), nil
|
||||
arch := common.CurrentArch()
|
||||
|
||||
return fmt.Sprintf("%s%s-%s-%s-%s", prefix, distroCode, arch, branchName, buildId), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue