1
0
Fork 0
mirror of synced 2024-06-01 18:39:57 +12:00

feat: cleanup the build command

This commit is contained in:
Christy Jacob 2022-02-19 03:46:39 +04:00
parent 8fffe5766d
commit 3606293268
2 changed files with 2 additions and 9 deletions

View file

@ -125,13 +125,8 @@ class BuildsV1 extends Worker
remove: true,
commands: [
'sh', '-c',
'mkdir -p /usr/code && \
cp /tmp/code.tar.gz /usr/workspace/code.tar.gz && \
cd /usr/workspace/ && \
tar -zxf /usr/workspace/code.tar.gz -C /usr/code && \
rm /usr/workspace/code.tar.gz && \
cd /usr/local/src && \
./build.sh'
'tar -zxf /tmp/code.tar.gz -C /usr/code && \
cd /usr/local/src && ./build.sh'
]
);

View file

@ -65,8 +65,6 @@ class Executor
'commands' => $commands
];
var_dump($params);
$response = $this->call(self::METHOD_POST, $route, $headers, $params, true, 30);
$status = $response['headers']['status-code'];