Misc fixes

This commit is contained in:
Radon Rosborough 2021-03-27 16:16:25 -07:00
parent d5c9e97e10
commit 0e5fd407b9
1 changed files with 17 additions and 9 deletions

View File

@ -130,7 +130,11 @@ async function getImageArtifact({ tag, isBaseImage, isLangImage }) {
return await hashDockerfile(name, dependentDockerHashes, { salt });
},
buildLocally: async () => {
await runCommand(`make image I=${tag}`);
if (isLangImage) {
await runCommand(`make image I=${name} L=${isLangImage.lang}`);
} else {
await runCommand(`make image I=${name}`);
}
},
retrieveFromRegistry: async () => {
await runCommand(`make pull I=${tag}`);
@ -563,6 +567,9 @@ async function executeDepGraph({
.join(", ")
);
console.log();
if (yes) {
console.log("Skipping confirmation since --yes was passed.");
} else {
console.log("Do you want to perform these actions?");
console.log(" Depgraph will perform the actions described above.");
console.log(" Only 'yes' will be accepted to approve.");
@ -573,6 +580,7 @@ async function executeDepGraph({
console.log("Apply cancelled.");
process.exit(1);
}
}
for (let idx = 0; idx < plan.length; idx++) {
const { artifact, action } = plan[idx];
console.log();