Skip to content

Commit

Permalink
Remove custom_container check
Browse files Browse the repository at this point in the history
  • Loading branch information
d10sfan committed Feb 29, 2024
1 parent cd0fe8f commit b9c51e5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,6 @@ async function run() {

let container = 'registry.gitlab.steamos.cloud/steamrt/sniper/sdk:0.20231211.70175';

const envFileStr = await fs.readFile(path.join('engines', engineName, 'env.sh'), 'utf-8');
const envFileArr = envFileStr.split(/\r?\n/);
for(let i = 0; i < envFileArr.length; i++) {
if(envFileArr[i].indexOf('CUSTOM_CONTAINER') !== -1) {
container = envFileArr[i].split('CUSTOM_CONTAINER=')[1].trim().replace(/['"]+/g, '');
}
}

console.log(`Found container name: ${container}`);
core.setOutput('container', container);
} else {
Expand Down

0 comments on commit b9c51e5

Please sign in to comment.