You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-08-08 22:36:41 +02:00
exclude git for docker archive
This commit is contained in:
@ -905,7 +905,9 @@ func ServiceDeploy(log *log.Logger, req *serviceDeployRequest) error {
|
||||
log.Println("Starting docker build")
|
||||
|
||||
// Create tar file of repository for service.
|
||||
buildCtx, err := archive.TarWithOptions(req.ProjectRoot, &archive.TarOptions{})
|
||||
buildCtx, err := archive.TarWithOptions(req.ProjectRoot, &archive.TarOptions{
|
||||
ExcludePatterns: []string{".git/*"},
|
||||
})
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Failed to create docker build context")
|
||||
}
|
||||
|
Reference in New Issue
Block a user