Explorar o código

use shorter git SHA of length 7

Mohammed Nafees %!s(int64=4) %!d(string=hai) anos
pai
achega
ab9318731f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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")