diff --git a/.github/workflows/bake.yml b/.github/workflows/bake.yml index 1083f786..90e9c710 100644 --- a/.github/workflows/bake.yml +++ b/.github/workflows/bake.yml @@ -414,7 +414,7 @@ jobs: return; } - const bakeSource = await new Build().gitContext({subdir: inpContext}); + const bakeSource = await new Build().gitContext({subdir: inpContext, attrs: {'fetch-by-commit': 'true'}}); await core.group(`Set bake source`, async () => { core.info(bakeSource); }); @@ -810,7 +810,7 @@ jobs: }; const renderTemplate = value => Util.compileHandlebars(value, {noEscape: true}, {meta}); - const bakeSource = await new Build().gitContext({subdir: inpContext}); + const bakeSource = await new Build().gitContext({subdir: inpContext, attrs: {'fetch-by-commit': 'true'}}); await core.group(`Set source output`, async () => { core.info(bakeSource); core.setOutput('source', bakeSource); diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 976f6e28..563a22aa 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -704,7 +704,7 @@ jobs: const renderTemplate = value => Util.compileHandlebars(value, {noEscape: true}, {meta}); const toMultilineInput = value => value.split(/\r?\n/).map(line => line.trim()).filter(Boolean); - const buildContext = await new Build().gitContext({subdir: inpContext}); + const buildContext = await new Build().gitContext({subdir: inpContext, attrs: {'fetch-by-commit': 'true'}}); core.setOutput('context', buildContext); switch (inpOutput) { diff --git a/test/go.Dockerfile b/test/go.Dockerfile index 7e00ad7e..3980c733 100644 --- a/test/go.Dockerfile +++ b/test/go.Dockerfile @@ -1,5 +1,3 @@ -# syntax=docker/dockerfile:1 - ARG GO_VERSION="1.25" ARG XX_VERSION="1.7.0" diff --git a/test/hello.Dockerfile b/test/hello.Dockerfile index 78fa5b8f..988d2e57 100644 --- a/test/hello.Dockerfile +++ b/test/hello.Dockerfile @@ -1,5 +1,3 @@ -# syntax=docker/dockerfile:1 - FROM alpine AS base ARG TARGETPLATFORM ARG VERSION="unknown"