We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb3893c commit 3313495Copy full SHA for 3313495
pipeline/build_golang.go
@@ -107,7 +107,13 @@ func (b *BuildPipelineGolang) CopyBinary(p *gaia.CreatePipeline) error {
107
src := p.Pipeline.Repo.LocalDest + string(os.PathSeparator) + appendTypeToName(p.Pipeline.Name, p.Pipeline.Type)
108
dest := gaia.Cfg.PipelinePath + string(os.PathSeparator) + appendTypeToName(p.Pipeline.Name, p.Pipeline.Type)
109
110
- return copyFileContents(src, dest)
+ // Copy binary
111
+ if err := copyFileContents(src, dest); err != nil {
112
+ return err
113
+ }
114
+
115
+ // Set +x (execution right) for pipeline
116
+ return os.Chmod(dest, 0766)
117
}
118
119
// copyFileContents copies the content from source to destination.
0 commit comments