mirror of
https://github.com/naveenrajm7/rpmbuild.git
synced 2025-07-12 04:13:50 +00:00
checking tmp
This commit is contained in:
@ -31,8 +31,8 @@ function run() {
|
||||
yield exec.exec(`cp -R /github/workspace/ /tmp/${repo}`);
|
||||
yield exec.exec(`cd /tmp/ && tar -czvf ${repo}.tar.gz ${repo}`);
|
||||
// Get repo files from /github/workspace/
|
||||
yield exec.exec('ls -la ');
|
||||
yield io.cp(`/tmp/${repo}.tar.gz`, '/github/home/rpmbuild/SOURCES/');
|
||||
yield exec.exec('ls -la /tmp');
|
||||
yield exec.exec(`cp /tmp/${repo}.tar.gz /github/home/rpmbuild/SOURCES/`);
|
||||
// Copy tar.gz file to /root/rpmbuild/SOURCES
|
||||
// make sure the name of tar.gz is same as given in Source of spec file
|
||||
//await io.cp(tarBallPath, '/root/rpmbuild/SOURCES');
|
||||
|
@ -30,8 +30,8 @@ async function run() {
|
||||
await exec.exec(`cd /tmp/ && tar -czvf ${repo}.tar.gz ${repo}`);
|
||||
|
||||
// Get repo files from /github/workspace/
|
||||
await exec.exec('ls -la ');
|
||||
await io.cp(`/tmp/${repo}.tar.gz`, '/github/home/rpmbuild/SOURCES/');
|
||||
await exec.exec('ls -la /tmp');
|
||||
await exec.exec(`cp /tmp/${repo}.tar.gz /github/home/rpmbuild/SOURCES/`);
|
||||
|
||||
// Copy tar.gz file to /root/rpmbuild/SOURCES
|
||||
// make sure the name of tar.gz is same as given in Source of spec file
|
||||
|
Reference in New Issue
Block a user