Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
identw committed Feb 26, 2024
1 parent b59e302 commit 0f17751
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion js-action/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,15 @@ async function main() {
createDir('copy-files');

for (const image of buildOpts) {
if (!image.hasOwnProperty('operation')) {
image['operation'] = 'build-and-push';
}
let resultTag = tag;
if (image === 'build') {
resultTag = `0000001-${generateRandomString(8)}`;
}

const imageTag = `${registry}/${repoName}/${image.name}:${tag}`;
const imageTag = `${registry}/${repoName}/${image.name}:${resultTag}`;
console.log(`Build image: ${imageTag}`);
builtImages[image.name] = imageTag;

Expand Down

0 comments on commit 0f17751

Please sign in to comment.