Parcourir la source

use shorter git SHA of length 7

Mohammed Nafees il y a 4 ans
Parent
commit
ab9318731f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 {
 		if err != nil {
 			return nil, err
 			return nil, err
 		}
 		}
-		tag = commit.Sha
+		tag = commit.Sha[:7]
 	}
 	}
 	if tag == "" {
 	if tag == "" {
 		return nil, fmt.Errorf("could not find commit SHA to tag the image")
 		return nil, fmt.Errorf("could not find commit SHA to tag the image")