Просмотр исходного кода

use shorter git SHA of length 7

Mohammed Nafees 4 лет назад
Родитель
Сommit
ab9318731f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      cli/cmd/apply.go

+ 1 - 1
cli/cmd/apply.go

@@ -221,7 +221,7 @@ func (d *Driver) Apply(resource *models.Resource) (*models.Resource, error) {
 		if err != nil {
 			return nil, err
 		}
-		tag = commit.Sha
+		tag = commit.Sha[:7]
 	}
 	if tag == "" {
 		return nil, fmt.Errorf("could not find commit SHA to tag the image")