pass --pull to docker buildx build to ensure all referenced images are always pulled

This commit is contained in:
2023-12-05 11:20:41 +01:00
parent b819e6af29
commit da12bc7505
3 changed files with 28 additions and 12 deletions
+3
View File
@@ -199,6 +199,9 @@ export function executeDockerBuild(dockerArgs, destinations) {
if (core.getBooleanInput('docker_push')) {
dockerSubCmd += ' --push';
}
if (core.getBooleanInput('docker_pull')) {
dockerSubCmd += ' --pull';
}
const execStr = `docker ${dockerSubCmd} ${dockerArgsStr}`;
console.log(`executing: ${execStr}`);