1
0
mirror of https://github.com/raseels-repos/golang-saas-starter-kit.git synced 2025-08-08 22:36:41 +02:00

enable builds to use GOPROXY

This commit is contained in:
Lee Brown
2019-08-26 17:01:58 -08:00
parent 85ef8070ce
commit e87ad3f8a2
5 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,7 @@
package config
import (
"fmt"
"log"
"path/filepath"
@ -27,7 +28,7 @@ var FunctionNames = []Function{
func NewFunction(funcName string, cfg *devdeploy.Config) (*devdeploy.ProjectFunction, error) {
ctx := &devdeploy.ProjectFunction{
Name: funcName,
Name: fmt.Sprintf("%s-%s-%s", cfg.Env, cfg.ProjectName, funcName),
CodeDir: filepath.Join(cfg.ProjectRoot, "cmd", funcName),
DockerBuildDir: cfg.ProjectRoot,
DockerBuildContext: ".",