cloud/awscloud: add ability to run a secure instance to awscloud
This instance can only contact the host, and requires this host to be running on AWS itself with the appropriate IAM role.
This commit is contained in:
parent
05a45ed233
commit
3db88960c2
4 changed files with 414 additions and 3 deletions
|
|
@ -492,7 +492,12 @@ func (impl *OSBuildJobImpl) Run(job worker.Job) error {
|
|||
return err
|
||||
}
|
||||
|
||||
osbuildJobResult.OSBuildOutput, err = executor.RunOSBuild(jobArgs.Manifest, impl.Store, outputDirectory, exports, nil, extraEnv, true, os.Stderr)
|
||||
exportPaths := []string{}
|
||||
for _, jobTarget := range jobArgs.Targets {
|
||||
exportPaths = append(exportPaths, path.Join(jobTarget.OsbuildArtifact.ExportName, jobTarget.OsbuildArtifact.ExportFilename))
|
||||
}
|
||||
|
||||
osbuildJobResult.OSBuildOutput, err = executor.RunOSBuild(jobArgs.Manifest, impl.Store, outputDirectory, exports, exportPaths, nil, extraEnv, true, os.Stderr)
|
||||
// First handle the case when "running" osbuild failed
|
||||
if err != nil {
|
||||
osbuildJobResult.JobError = clienterrors.WorkerClientError(clienterrors.ErrorBuildJob, "osbuild build failed", err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue