@@ -110,7 +110,6 @@ func build(conf *Config, etcdClient *etcd.Client) error {
110110 // GIT_SHA=$3
111111 // SHORT_SHA=${GIT_SHA:0:8}
112112 // APP_NAME="${REPO%.*}"
113- user := conf .Username
114113 repo := conf .Repository
115114 gitSha := conf .SHA
116115 if len (gitSha ) <= shortShaIdx {
@@ -131,7 +130,7 @@ func build(conf *Config, etcdClient *etcd.Client) error {
131130 }
132131 repoDir := filepath .Join (rootDir , repo )
133132 buildDir := filepath .Join (repoDir , "build" )
134- cacheDir := filepath .Join (repoDir , "cache" )
133+ // cacheDir := filepath.Join(repoDir, "cache")
135134 //
136135 // # define image names
137136 // SLUG_NAME="$APP_NAME:git-$SHORT_SHA"
@@ -142,7 +141,7 @@ func build(conf *Config, etcdClient *etcd.Client) error {
142141 // # create temporary directory inside the build dir for this push
143142 // TMP_DIR=$(mktemp -d -p $BUILD_DIR)
144143 slugName := fmt .Sprintf ("%s:git-%s" , appName , shortSha )
145- metaName := strings .Replace (slugName , ":" , "-" , - 1 )
144+ // metaName := strings.Replace(slugName, ":", "-", -1)
146145 tmpImage := fmt .Sprintf ("%s:%s/%s" , conf .RegistryHost , conf .RegistryPort , conf .ImageName )
147146 if err := os .MkdirAll (buildDir , os .ModeDir ); err != nil {
148147 return fmt .Errorf ("making the build directory %s (%s)" , buildDir , err )
0 commit comments