Skip to content

Commit

Permalink
fix: only update alias on snapshots
Browse files Browse the repository at this point in the history
Co-authored-by: Jaime Soriano Pastor <jaime.soriano@elastic.co>
  • Loading branch information
mdelapenya and jsoriano committed Oct 19, 2020
1 parent 707e0d7 commit cff2cef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dev-tools/mage/dockerbuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ func (b *dockerBuilder) dockerBuild() (string, error) {
}
if repository, _ := b.ExtraVars["repository"]; repository != "" {
tag = fmt.Sprintf("%s/%s", repository, tag)
aliasTag = fmt.Sprintf("%s/%s", repository, aliasTag)
if b.Snapshot {
aliasTag = fmt.Sprintf("%s/%s", repository, aliasTag)
}
}

args := []string{
Expand Down

0 comments on commit cff2cef

Please sign in to comment.