mark buildx >= 0.20.0 as incompatible with docker/bake-action < v5

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2025-01-21 13:32:10 +01:00
parent f32f8b8d70
commit 51c0065caf
2 changed files with 57 additions and 2 deletions

View File

@@ -16,6 +16,9 @@ actionsToolkit.run(
async () => {
const inputs: context.Inputs = await context.getInputs();
const toolkit = new Toolkit();
if (await toolkit.buildx.versionSatisfies('>=0.20.0')) {
throw new Error('docker/bake-action < v5 is not compatible with buildx >= 0.20.0, please update your workflow to latest docker/bake-action or use an older buildx version.');
}
await core.group(`GitHub Actions runtime token ACs`, async () => {
try {