Skip to content

Commit

Permalink
Added info logging of provider assumptions when checking if a Dockerf…
Browse files Browse the repository at this point in the history
…ile exists in service_common.go
  • Loading branch information
rmc3 committed Apr 10, 2018
1 parent 28abe63 commit 35d6af5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workflows/service_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,10 @@ func (workflow *serviceWorkflow) serviceLoader(ctx *common.Context, tag string,
log.Debugf("Determining repo provider by checking for existence of '%s'", dockerfilePath)

if _, err := os.Stat(dockerfilePath); !os.IsNotExist(err) {
log.Infof("Dockerfile found, assuming ECR pipeline")
workflow.artifactProvider = common.ArtifactProviderEcr
} else {
log.Infof("No Dockerfile found, assuming CodeDeploy pipeline")
workflow.artifactProvider = common.ArtifactProviderS3
}
} else {
Expand Down

0 comments on commit 35d6af5

Please sign in to comment.