Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker: Fix images tags #188

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions pipelines/package_names.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,19 @@ func TarOptsFromFileName(filename string) TarFileOpts {
if len(components) != 5 {
return TarFileOpts{}
}
versionComponents := strings.Split(components[1], "-")

var (
name = components[0]
version = components[1]
buildID = components[2]
version = versionComponents[0]
os = components[3]
arch = components[4]
)
var buildID string
// Check if BuildID exists
if len(versionComponents) > 1 {
buildID = versionComponents[1]
}
if archv := strings.Split(arch, "-"); len(archv) == 2 {
// The reverse operation of removing the 'v' for 'arm' because the golang environment variable
// GOARM doesn't want it, but the docker --platform flag either doesn't care or does want it.
Expand Down